pub enum Restart {
Permanent,
Temporary,
Transient,
}Expand description
Controls what a supervisor should consider to be a successful termination or not.
Variants§
Permanent
The child process is always restarted.
Temporary
The child process is never restarted, regardless of the supervision strategy: any termination (even abnormal) is considered successful.
Transient
The child process is restarted if it terminates abnormally, i.e., with an exit reason other than
normal, or shutdown.
Trait Implementations§
Source§impl Ord for Restart
impl Ord for Restart
Source§impl PartialOrd for Restart
impl PartialOrd for Restart
impl Copy for Restart
impl Eq for Restart
impl StructuralPartialEq for Restart
Auto Trait Implementations§
impl Freeze for Restart
impl RefUnwindSafe for Restart
impl Send for Restart
impl Sync for Restart
impl Unpin for Restart
impl UnwindSafe for Restart
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