Enum futures_intrusive::channel::CloseStatus
source · 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
sourceimpl 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
sourceimpl Clone for CloseStatus
impl Clone for CloseStatus
sourcefn clone(&self) -> CloseStatus
fn clone(&self) -> CloseStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CloseStatus
impl Debug for CloseStatus
sourceimpl Hash for CloseStatus
impl Hash for CloseStatus
sourceimpl PartialEq<CloseStatus> for CloseStatus
impl PartialEq<CloseStatus> for CloseStatus
sourcefn eq(&self, other: &CloseStatus) -> bool
fn eq(&self, other: &CloseStatus) -> bool
impl Copy for CloseStatus
impl Eq for CloseStatus
impl StructuralEq for CloseStatus
impl StructuralPartialEq for CloseStatus
Auto Trait Implementations
impl RefUnwindSafe for CloseStatus
impl Send for CloseStatus
impl Sync for CloseStatus
impl Unpin for CloseStatus
impl UnwindSafe for CloseStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more