pub enum ShutdownOutcome {
Completed,
TimedOut {
remaining_tasks: usize,
},
}Expand description
The result of a shutdown operation with a deadline.
Variants§
Completed
Every accepted task completed before the deadline.
TimedOut
The deadline elapsed and the remaining tasks were cancelled.
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 moreimpl Copy for ShutdownOutcome
Source§impl Debug for ShutdownOutcome
impl Debug for ShutdownOutcome
impl Eq for ShutdownOutcome
Source§impl PartialEq for ShutdownOutcome
impl PartialEq for ShutdownOutcome
impl StructuralPartialEq for ShutdownOutcome
Auto 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