pub enum SupervisionStrategy {
Stop,
Retry(Box<dyn RetryStrategy>),
}Expand description
A SupervisionStrategy defined what to do when an actor fails at startup. Currently there are two choices: Stop the actor and do nothing, or Retry the startup. For Retry you can set a RetryStrategy.
Variants§
Stop
Retry(Box<dyn RetryStrategy>)
Trait Implementations§
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