pub enum ConditionResult<T> {
Value(T),
Locked,
Dropped,
}Expand description
Result produced by a Condition waiter.
Variants§
Value(T)
The condition delivered a value.
Locked
The condition has been locked and will not deliver more values.
Dropped
The last handle to the condition was dropped.
Trait Implementations§
Source§impl<T> Clone for ConditionResult<T>where
T: Clone,
impl<T> Clone for ConditionResult<T>where
T: Clone,
Source§fn clone(&self) -> ConditionResult<T>
fn clone(&self) -> ConditionResult<T>
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<T> Debug for ConditionResult<T>where
T: Debug,
impl<T> Debug for ConditionResult<T>where
T: Debug,
impl<T> Eq for ConditionResult<T>where
T: Eq,
Source§impl<T> PartialEq for ConditionResult<T>where
T: PartialEq,
impl<T> PartialEq for ConditionResult<T>where
T: PartialEq,
impl<T> StructuralPartialEq for ConditionResult<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for ConditionResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConditionResult<T>where
T: RefUnwindSafe,
impl<T> Send for ConditionResult<T>where
T: Send,
impl<T> Sync for ConditionResult<T>where
T: Sync,
impl<T> Unpin for ConditionResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for ConditionResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ConditionResult<T>where
T: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.