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<ElementStatus<M>> for ElementStatus<M>
impl<M: PartialEq> PartialEq<ElementStatus<M>> 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 ==
.