pub enum TakeResult<T> {
Ready(T),
Pending,
Closed,
}Expand description
Result of trying to take a value from storage
Variants§
Ready(T)
Value is ready
Pending
Value is not ready yet (pending)
Closed
Sender was dropped without sending
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for TakeResult<T>
impl<T: Clone> Clone for TakeResult<T>
Source§fn clone(&self) -> TakeResult<T>
fn clone(&self) -> TakeResult<T>
Returns a duplicate of the value. Read more
1.0.0 · 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> Debug for TakeResult<T>
impl<T: Debug> Debug for TakeResult<T>
Source§impl<T: PartialEq> PartialEq for TakeResult<T>
impl<T: PartialEq> PartialEq for TakeResult<T>
impl<T: Copy> Copy for TakeResult<T>
impl<T: Eq> Eq for TakeResult<T>
impl<T> StructuralPartialEq for TakeResult<T>
Auto Trait Implementations§
impl<T> Freeze for TakeResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for TakeResult<T>where
T: RefUnwindSafe,
impl<T> Send for TakeResult<T>where
T: Send,
impl<T> Sync for TakeResult<T>where
T: Sync,
impl<T> Unpin for TakeResult<T>where
T: Unpin,
impl<T> UnwindSafe for TakeResult<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