pub enum SupervisionStrategy {
Stop,
Retry(Strategy),
}Expand description
Determines what happens when an actor fails during startup.
Pass this when creating an actor to control whether the system stops on first failure or retries with a configurable back-off strategy.
Variants§
Stop
Stop the actor permanently on the first startup error.
Retry(Strategy)
Retry startup using the given Strategy.
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 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