pub enum DrainResult {
Drained {
sessions_completed: usize,
},
TimedOut {
force_expired: usize,
},
}Expand description
Result of the shutdown drain process.
Variants§
Drained
All sessions completed within the timeout.
TimedOut
Timeout elapsed; some sessions were force-expired.
Trait Implementations§
Source§impl Clone for DrainResult
impl Clone for DrainResult
Source§fn clone(&self) -> DrainResult
fn clone(&self) -> DrainResult
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 DrainResult
impl Debug for DrainResult
impl Eq for DrainResult
Source§impl PartialEq for DrainResult
impl PartialEq for DrainResult
Source§fn eq(&self, other: &DrainResult) -> bool
fn eq(&self, other: &DrainResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DrainResult
Auto Trait Implementations§
impl Freeze for DrainResult
impl RefUnwindSafe for DrainResult
impl Send for DrainResult
impl Sync for DrainResult
impl Unpin for DrainResult
impl UnsafeUnpin for DrainResult
impl UnwindSafe for DrainResult
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