pub struct Recovery<Source> { /* private fields */ }Expand description
Complete eligibility, worker source, and policy for recovery.
Implementations§
Source§impl<Source> Recovery<Source>
impl<Source> Recovery<Source>
Sourcepub const fn permanent(
source: Source,
strategy: Strategy,
limit: RestartLimit,
release: RestartRelease,
) -> Self
pub const fn permanent( source: Source, strategy: Strategy, limit: RestartLimit, release: RestartRelease, ) -> Self
Recover after normal or abnormal worker stop through this source.
Sourcepub const fn transient(
source: Source,
strategy: Strategy,
limit: RestartLimit,
release: RestartRelease,
) -> Self
pub const fn transient( source: Source, strategy: Strategy, limit: RestartLimit, release: RestartRelease, ) -> Self
Recover only after abnormal worker stop through this source.
Trait Implementations§
impl<Source: Copy> Copy for Recovery<Source>
impl<Source: Eq> Eq for Recovery<Source>
impl<Source> StructuralPartialEq for Recovery<Source>
Auto Trait Implementations§
impl<Source> Freeze for Recovery<Source>where
Source: Freeze,
impl<Source> RefUnwindSafe for Recovery<Source>where
Source: RefUnwindSafe,
impl<Source> Send for Recovery<Source>where
Source: Send,
impl<Source> Sync for Recovery<Source>where
Source: Sync,
impl<Source> Unpin for Recovery<Source>where
Source: Unpin,
impl<Source> UnsafeUnpin for Recovery<Source>where
Source: UnsafeUnpin,
impl<Source> UnwindSafe for Recovery<Source>where
Source: UnwindSafe,
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