Enum sync_channel::ChannelStatus
source · pub enum ChannelStatus {
Connected,
SenderDisconnected,
ReceiverDisconnected,
}
Expand description
Indicates whether channel is Connected or Disconnected
Variants§
Connected
Channel is working. Initially channel is created with Connected status.
SenderDisconnected
Set to Disconnected when Sender end is dropped.
ReceiverDisconnected
Set to Disconnected when Receiver end is dropped.
Trait Implementations§
source§impl Clone for ChannelStatus
impl Clone for ChannelStatus
source§fn clone(&self) -> ChannelStatus
fn clone(&self) -> ChannelStatus
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 ChannelStatus
impl Debug for ChannelStatus
source§impl PartialEq<ChannelStatus> for ChannelStatus
impl PartialEq<ChannelStatus> for ChannelStatus
source§fn eq(&self, other: &ChannelStatus) -> bool
fn eq(&self, other: &ChannelStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChannelStatus
impl StructuralPartialEq for ChannelStatus
Auto Trait Implementations§
impl RefUnwindSafe for ChannelStatus
impl Send for ChannelStatus
impl Sync for ChannelStatus
impl Unpin for ChannelStatus
impl UnwindSafe for ChannelStatus
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