pub struct Group {
pgid: u32,
}Fields§
§pgid: u32Implementations§
Source§impl Group
impl Group
fn signal(&self, signal: Signal)
Sourcepub fn freeze(&self)
pub fn freeze(&self)
Freezes every member while keeping its sockets open, so the database still sees the clients it is diagnosing.
Sourcepub fn kill(&self)
pub fn kill(&self)
Safe to call when the group is already gone, and on every exit path: a member can outlive the leader, and the group id stays reserved until the last one dies.
pub fn members(&self) -> Vec<u32>
Sourcepub fn thread_states(&self) -> Vec<String>
pub fn thread_states(&self) -> Vec<String>
Thread states of every member: futex_wait means a lock, epoll_wait means
a socket that will never answer. They vanish with the process, and a
stopped task reports only its stop, so read them before freeze.
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more