pub enum RestartStrategy {
OneForOne {
max_restarts: usize,
within: Duration,
base_backoff: Duration,
},
}Expand description
Strategy for restarting failed child actors.
Currently only OneForOne is supported: each failed child is restarted
independently, without affecting siblings.
Variants§
OneForOne
Restart only the failed child actor.
Trait Implementations§
Source§impl Clone for RestartStrategy
impl Clone for RestartStrategy
Source§impl Debug for RestartStrategy
impl Debug for RestartStrategy
Auto Trait Implementations§
impl Forget for RestartStrategy
impl Freeze for RestartStrategy
impl Move for RestartStrategy
impl RefUnwindSafe for RestartStrategy
impl Send for RestartStrategy
impl Sync for RestartStrategy
impl Unpin for RestartStrategy
impl UnsafeUnpin for RestartStrategy
impl UnwindSafe for RestartStrategy
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