pub struct ProcGroupRegistry { /* private fields */ }Expand description
Concurrency-safe set of process-group ids.
Implementations§
Source§impl ProcGroupRegistry
impl ProcGroupRegistry
Sourcepub fn register_active(&self, process_group: i32) -> bool
pub fn register_active(&self, process_group: i32) -> bool
Register a group unless teardown already happened.
Sourcepub fn unregister(&self, process_group: i32)
pub fn unregister(&self, process_group: i32)
Remove a reaped group.
Sourcepub fn kill_group(process_group: i32)
pub fn kill_group(process_group: i32)
Kill one Unix process group best-effort.
Trait Implementations§
Source§impl Clone for ProcGroupRegistry
impl Clone for ProcGroupRegistry
Source§fn clone(&self) -> ProcGroupRegistry
fn clone(&self) -> ProcGroupRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcGroupRegistry
impl Debug for ProcGroupRegistry
Source§impl Default for ProcGroupRegistry
impl Default for ProcGroupRegistry
Source§fn default() -> ProcGroupRegistry
fn default() -> ProcGroupRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcGroupRegistry
impl RefUnwindSafe for ProcGroupRegistry
impl Send for ProcGroupRegistry
impl Sync for ProcGroupRegistry
impl Unpin for ProcGroupRegistry
impl UnsafeUnpin for ProcGroupRegistry
impl UnwindSafe for ProcGroupRegistry
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