pub enum SupervisionStrategy {
OneForOne,
OneForAll,
RestForOne,
}Expand description
Supervision strategies for actor fault tolerance
Variants§
OneForOne
Restart only the failed child
OneForAll
Restart all children when one fails
RestForOne
Restart the failed child and all children started after it
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 moreAuto 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