pub enum AutoShutdown {
Never,
AnySignificant,
AllSignificant,
}Expand description
Defines how a superviser should handle shutdown when a significant process exits.
Variants§
Never
This is the default, automatic shutdown is disabled.
AnySignificant
If any significant child process exits, the supervisor will automatically shut down it’s children, then itself.
AllSignificant
When all significant child processes have exited, the supervisor will automatically shut down it’s children, then itself.
Trait Implementations§
Source§impl Clone for AutoShutdown
impl Clone for AutoShutdown
Source§fn clone(&self) -> AutoShutdown
fn clone(&self) -> AutoShutdown
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoShutdown
impl Debug for AutoShutdown
Source§impl Ord for AutoShutdown
impl Ord for AutoShutdown
Source§fn cmp(&self, other: &AutoShutdown) -> Ordering
fn cmp(&self, other: &AutoShutdown) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AutoShutdown
impl PartialEq for AutoShutdown
Source§impl PartialOrd for AutoShutdown
impl PartialOrd for AutoShutdown
impl Copy for AutoShutdown
impl Eq for AutoShutdown
impl StructuralPartialEq for AutoShutdown
Auto Trait Implementations§
impl Freeze for AutoShutdown
impl RefUnwindSafe for AutoShutdown
impl Send for AutoShutdown
impl Sync for AutoShutdown
impl Unpin for AutoShutdown
impl UnwindSafe for AutoShutdown
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