pub enum Supervision {
Stop,
Resume,
Restart {
max: Limit,
backoff: Backoff,
},
}Expand description
Variants§
Stop
Actor terminates on error.
Resume
Actor continues processing the next message after an error.
Restart
Actor is restarted on error, up to max times with optional backoff.
Trait Implementations§
Source§impl Clone for Supervision
impl Clone for Supervision
Source§fn clone(&self) -> Supervision
fn clone(&self) -> Supervision
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 Supervision
impl Debug for Supervision
impl Copy for Supervision
Auto Trait Implementations§
impl Freeze for Supervision
impl RefUnwindSafe for Supervision
impl Send for Supervision
impl Sync for Supervision
impl Unpin for Supervision
impl UnsafeUnpin for Supervision
impl UnwindSafe for Supervision
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