Enum channel::diem_channel::ElementStatus
source · 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>
source§fn eq(&self, other: &ElementStatus<M>) -> bool
fn eq(&self, other: &ElementStatus<M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
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