pub struct RecoveryHandler { /* private fields */ }Expand description
Instructions on how to recover from a component fault
The action described by this object will be executed on the Supervisor. This means you cannot block on the result of any notify futures, without deadlocking your system!
If you need to perform a complicated setup sequence, consider starting a temporary component to drive the futures involved, instead of handling everything in the recovery handler.
An instance of this can be produced via FaultContext::recover_with or other convenience methods on FaultContext.
Trait Implementations§
Source§impl Clone for RecoveryHandler
impl Clone for RecoveryHandler
Source§fn clone(&self) -> RecoveryHandler
fn clone(&self) -> RecoveryHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecoveryHandler
impl !RefUnwindSafe for RecoveryHandler
impl Send for RecoveryHandler
impl !Sync for RecoveryHandler
impl Unpin for RecoveryHandler
impl UnsafeUnpin for RecoveryHandler
impl !UnwindSafe for RecoveryHandler
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