pub enum SupervisionStrategy {
OneForOne,
OneForAll,
RestForOne,
}Expand description
How a supervisor responds when a child fails.
Variants§
OneForOne
Restart only the failed child; siblings are unaffected (REQ-015).
OneForAll
Stop all children in reverse order, then restart all in original order (REQ-016).
RestForOne
Stop children started after the failed child in reverse order, then restart the failed child and its successors in original order (REQ-017).
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
Source§impl PartialEq for SupervisionStrategy
impl PartialEq for SupervisionStrategy
impl Copy for SupervisionStrategy
impl Eq for SupervisionStrategy
impl StructuralPartialEq 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.