#[non_exhaustive]pub enum DrainOutcome {
Complete,
TimedOut {
active: usize,
},
}Expand description
Result of closing admission and waiting for admitted operations.
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.
Complete
Every admitted operation released its guard.
TimedOut
Work remains; the crate has not cancelled it.
Trait Implementations§
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