pub enum SupervisionStrategy {
OneForOne,
OneForAll,
RestForOne,
}Expand description
The supervision strategy to use for each child.
Variants§
OneForOne
If a child process terminates, only that process is restarted.
OneForAll
If a child process terminates, all other child processes are terminated and then all child processes are restarted.
RestForOne
If a child process terminates, the terminated child process and the rest of the children started after it, are terminated and restarted.
Trait Implementations§
Source§impl Clone for SupervisionStrategy
impl Clone for SupervisionStrategy
Source§fn clone(&self) -> SupervisionStrategy
fn clone(&self) -> SupervisionStrategy
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 SupervisionStrategy
impl Debug for SupervisionStrategy
impl Copy for SupervisionStrategy
Auto Trait Implementations§
impl Freeze for SupervisionStrategy
impl RefUnwindSafe for SupervisionStrategy
impl Send for SupervisionStrategy
impl Sync for SupervisionStrategy
impl Unpin for SupervisionStrategy
impl UnwindSafe for SupervisionStrategy
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