pub enum DrainOutcome {
Clean,
Forced,
}Expand description
How a bounded drain finished.
Variants§
Clean
Every in-flight request completed before the drain deadline.
Forced
The drain deadline elapsed and the remaining connections were force-closed.
Trait Implementations§
Source§impl Clone for DrainOutcome
impl Clone for DrainOutcome
Source§fn clone(&self) -> DrainOutcome
fn clone(&self) -> DrainOutcome
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 DrainOutcome
Source§impl Debug for DrainOutcome
impl Debug for DrainOutcome
impl Eq for DrainOutcome
Source§impl PartialEq for DrainOutcome
impl PartialEq for DrainOutcome
impl StructuralPartialEq for DrainOutcome
Auto Trait Implementations§
impl Freeze for DrainOutcome
impl RefUnwindSafe for DrainOutcome
impl Send for DrainOutcome
impl Sync for DrainOutcome
impl Unpin for DrainOutcome
impl UnsafeUnpin for DrainOutcome
impl UnwindSafe for DrainOutcome
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