[][src]Enum futures_intrusive::channel::CloseStatus

pub enum CloseStatus {
    NewlyClosed,
    AlreadyClosed,
}

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.

Methods

impl CloseStatus[src]

pub fn is_newly_closed(self) -> bool[src]

Returns whether the value is the NewlyClosed variant.

pub fn is_already_closed(self) -> bool[src]

Returns whether the value is the AlreadyClosed variant.

Trait Implementations

impl Clone for CloseStatus[src]

impl Copy for CloseStatus[src]

impl Debug for CloseStatus[src]

impl Eq for CloseStatus[src]

impl Hash for CloseStatus[src]

impl PartialEq<CloseStatus> for CloseStatus[src]

impl StructuralEq for CloseStatus[src]

impl StructuralPartialEq for CloseStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.