pub enum OwnerDeathCleanup {
OwnerDeathSignal,
KillOnOwnerHandleClose,
AlreadyContained,
SupervisorRequired,
Unsupported,
}Expand description
What this host installed so a child outlives its owner no longer than it should.
The variants name the guarantee, not the call that produced it. A caller deciding whether to spawn a supervisor cares that the kernel will not do the reaping for it; whether the kernel would have used a parent-death signal or a job object is not a distinction it can act on.
Variants§
OwnerDeathSignal
The kernel signals this process when its owner exits.
KillOnOwnerHandleClose
This process belongs to a container the kernel destroys with its owner.
AlreadyContained
This process was already in such a container, installed by someone else.
SupervisorRequired
The host offers no kernel mechanism; a supervisor must do the reaping.
Unsupported
The host offers nothing and no supervisor contract is defined here.
Trait Implementations§
Source§impl Clone for OwnerDeathCleanup
impl Clone for OwnerDeathCleanup
Source§fn clone(&self) -> OwnerDeathCleanup
fn clone(&self) -> OwnerDeathCleanup
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 moreimpl Copy for OwnerDeathCleanup
Source§impl Debug for OwnerDeathCleanup
impl Debug for OwnerDeathCleanup
impl Eq for OwnerDeathCleanup
Source§impl PartialEq for OwnerDeathCleanup
impl PartialEq for OwnerDeathCleanup
impl StructuralPartialEq for OwnerDeathCleanup
Auto Trait Implementations§
impl Freeze for OwnerDeathCleanup
impl RefUnwindSafe for OwnerDeathCleanup
impl Send for OwnerDeathCleanup
impl Sync for OwnerDeathCleanup
impl Unpin for OwnerDeathCleanup
impl UnsafeUnpin for OwnerDeathCleanup
impl UnwindSafe for OwnerDeathCleanup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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