pub enum CloseStatus {
NewlyClosed,
AlreadyClosed,
}
Expand description
Conveys additional information regarding the status of a channel
following a close
operation.
Variants§
NewlyClosed
The channel has just been closed by the operation.
AlreadyClosed
The channel was already closed prior to the operation.
Implementations§
Source§impl CloseStatus
impl CloseStatus
Sourcepub fn is_newly_closed(self) -> bool
pub fn is_newly_closed(self) -> bool
Returns whether the value is the NewlyClosed
variant.
Sourcepub fn is_already_closed(self) -> bool
pub fn is_already_closed(self) -> bool
Returns whether the value is the AlreadyClosed
variant.
Trait Implementations§
Source§impl Clone for CloseStatus
impl Clone for CloseStatus
Source§fn clone(&self) -> CloseStatus
fn clone(&self) -> CloseStatus
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 CloseStatus
impl Debug for CloseStatus
Source§impl Hash for CloseStatus
impl Hash for CloseStatus
Source§impl PartialEq for CloseStatus
impl PartialEq for CloseStatus
impl Copy for CloseStatus
impl Eq for CloseStatus
impl StructuralPartialEq for CloseStatus
Auto Trait Implementations§
impl Freeze for CloseStatus
impl RefUnwindSafe for CloseStatus
impl Send for CloseStatus
impl Sync for CloseStatus
impl Unpin for CloseStatus
impl UnwindSafe for CloseStatus
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