pub enum SupervisorStrategy {
OneForOne,
OneForAll,
RestForOne,
}Expand description
Restart strategy for supervisor trees
Variants§
OneForOne
Restart only the failed child
OneForAll
Restart all children if one fails
RestForOne
Restart the failed child and all children started after it
Trait Implementations§
Source§impl Clone for SupervisorStrategy
impl Clone for SupervisorStrategy
Source§fn clone(&self) -> SupervisorStrategy
fn clone(&self) -> SupervisorStrategy
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 SupervisorStrategy
impl Debug for SupervisorStrategy
Source§impl PartialEq for SupervisorStrategy
impl PartialEq for SupervisorStrategy
impl Copy for SupervisorStrategy
impl Eq for SupervisorStrategy
impl StructuralPartialEq for SupervisorStrategy
Auto Trait Implementations§
impl Freeze for SupervisorStrategy
impl RefUnwindSafe for SupervisorStrategy
impl Send for SupervisorStrategy
impl Sync for SupervisorStrategy
impl Unpin for SupervisorStrategy
impl UnwindSafe for SupervisorStrategy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.