pub enum DrainState {
More,
Drained,
}Expand description
The outcome of one DrainSource::drain_ready pass.
Variants§
More
Items may be available on the next call — the source is not exhausted, it just ran out of ready items this pass (or the visitor stopped it).
Drained
The source is permanently exhausted; it will not be polled again.
Trait Implementations§
Source§impl Clone for DrainState
impl Clone for DrainState
impl Copy for DrainState
Source§impl Debug for DrainState
impl Debug for DrainState
impl Eq for DrainState
Source§impl PartialEq for DrainState
impl PartialEq for DrainState
impl StructuralPartialEq for DrainState
Auto Trait Implementations§
impl Freeze for DrainState
impl RefUnwindSafe for DrainState
impl Send for DrainState
impl Sync for DrainState
impl Unpin for DrainState
impl UnsafeUnpin for DrainState
impl UnwindSafe for DrainState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.