Enum remoc::rch::ClosedReason
source · pub enum ClosedReason {
Closed,
Dropped,
Failed,
}
Available on crate feature
rch
only.Expand description
Reason for closure of sender.
Variants§
Closed
Channel was closed because receiver has been closed.
Dropped
Channel was closed because receiver has been dropped.
Failed
Channel was closed because connection between sender and receiver failed.
Trait Implementations§
source§impl Clone for ClosedReason
impl Clone for ClosedReason
source§fn clone(&self) -> ClosedReason
fn clone(&self) -> ClosedReason
Returns a copy 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 Debug for ClosedReason
impl Debug for ClosedReason
source§impl<'de> Deserialize<'de> for ClosedReason
impl<'de> Deserialize<'de> for ClosedReason
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ClosedReason
impl Hash for ClosedReason
source§impl Ord for ClosedReason
impl Ord for ClosedReason
source§fn cmp(&self, other: &ClosedReason) -> Ordering
fn cmp(&self, other: &ClosedReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ClosedReason
impl PartialEq for ClosedReason
source§fn eq(&self, other: &ClosedReason) -> bool
fn eq(&self, other: &ClosedReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ClosedReason
impl PartialOrd for ClosedReason
source§fn partial_cmp(&self, other: &ClosedReason) -> Option<Ordering>
fn partial_cmp(&self, other: &ClosedReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ClosedReason
impl Serialize for ClosedReason
impl Eq for ClosedReason
impl StructuralPartialEq for ClosedReason
Auto Trait Implementations§
impl Freeze for ClosedReason
impl RefUnwindSafe for ClosedReason
impl Send for ClosedReason
impl Sync for ClosedReason
impl Unpin for ClosedReason
impl UnwindSafe for ClosedReason
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