#[non_exhaustive]pub enum ShutdownOutcome {
AlreadyExited(ProcessResult),
Stopped(ProcessResult),
}Expand description
Outcome of requesting persistent process shutdown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlreadyExited(ProcessResult)
The process had already exited before shutdown was requested.
Stopped(ProcessResult)
The process was stopped by the shutdown request.
Trait Implementations§
Source§impl Clone for ShutdownOutcome
impl Clone for ShutdownOutcome
Source§fn clone(&self) -> ShutdownOutcome
fn clone(&self) -> ShutdownOutcome
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 ShutdownOutcome
impl RefUnwindSafe for ShutdownOutcome
impl Send for ShutdownOutcome
impl Sync for ShutdownOutcome
impl Unpin for ShutdownOutcome
impl UnsafeUnpin for ShutdownOutcome
impl UnwindSafe for ShutdownOutcome
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