pub enum Policy {
Never,
Backoff {
start: Duration,
cap: Duration,
give_up_after: u32,
reset_after: Duration,
},
}Expand description
How a member’s death is handled.
Variants§
Never
Report a death; never restart.
Backoff
Restart with backoff, give up after a bounded number of attempts.
Implementations§
Trait Implementations§
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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