pub enum ElementStatus<M> {
Dequeued,
Dropped(M),
}
Expand description
The status of an element inserted into a diem_channel. If the element is successfully dequeued, ElementStatus::Dequeued is sent to the sender. If it is dropped ElementStatus::Dropped is sent to the sender along with the dropped element.
Variants§
Trait Implementations§
Source§impl<M: Debug> Debug for ElementStatus<M>
impl<M: Debug> Debug for ElementStatus<M>
Source§impl<M: PartialEq> PartialEq for ElementStatus<M>
impl<M: PartialEq> PartialEq for ElementStatus<M>
Auto Trait Implementations§
impl<M> Freeze for ElementStatus<M>where
M: Freeze,
impl<M> RefUnwindSafe for ElementStatus<M>where
M: RefUnwindSafe,
impl<M> Send for ElementStatus<M>where
M: Send,
impl<M> Sync for ElementStatus<M>where
M: Sync,
impl<M> Unpin for ElementStatus<M>where
M: Unpin,
impl<M> UnwindSafe for ElementStatus<M>where
M: 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