pub struct RecoveryOutcome { /* private fields */ }Expand description
Results from the shutdown attempt and the optional restart attempt.
Implementations§
Source§impl RecoveryOutcome
impl RecoveryOutcome
Sourcepub const fn shutdown_outcome(&self) -> &OperationOutcome
pub const fn shutdown_outcome(&self) -> &OperationOutcome
Returns the shutdown result.
Sourcepub const fn restart_outcome(&self) -> Option<&OperationOutcome>
pub const fn restart_outcome(&self) -> Option<&OperationOutcome>
Returns the restart result, or None after leave_stopped.
Trait Implementations§
Source§impl Clone for RecoveryOutcome
impl Clone for RecoveryOutcome
Source§fn clone(&self) -> RecoveryOutcome
fn clone(&self) -> RecoveryOutcome
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 moreSource§impl Debug for RecoveryOutcome
impl Debug for RecoveryOutcome
impl Eq for RecoveryOutcome
Source§impl PartialEq for RecoveryOutcome
impl PartialEq for RecoveryOutcome
impl StructuralPartialEq for RecoveryOutcome
Auto Trait Implementations§
impl Freeze for RecoveryOutcome
impl RefUnwindSafe for RecoveryOutcome
impl Send for RecoveryOutcome
impl Sync for RecoveryOutcome
impl Unpin for RecoveryOutcome
impl UnsafeUnpin for RecoveryOutcome
impl UnwindSafe for RecoveryOutcome
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