[][src]Enum async_chanx::ChanErr

pub enum ChanErr<I> {
    Closed,
    ClosedI(I),
}

A unified error for async channels. When creating a trait object based on Sink, you will also have to specify the error type. By creating a single type here that raps the native errors from channels, we make this easier.

Variants

Closed

The channel Sender is already closed.

ClosedI(I)

The channel Sender is already closed. The item you tried to send is returned in the error.

Trait Implementations

impl<I: Clone> Clone for ChanErr<I>[src]

impl<I> Debug for ChanErr<I>[src]

impl<I> Display for ChanErr<I>[src]

impl<I: Eq> Eq for ChanErr<I>[src]

impl<I> Error for ChanErr<I>[src]

impl<I: PartialEq> PartialEq<ChanErr<I>> for ChanErr<I>[src]

impl<I> StructuralEq for ChanErr<I>[src]

impl<I> StructuralPartialEq for ChanErr<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for ChanErr<I> where
    I: RefUnwindSafe

impl<I> Send for ChanErr<I> where
    I: Send

impl<I> Sync for ChanErr<I> where
    I: Sync

impl<I> Unpin for ChanErr<I> where
    I: Unpin

impl<I> UnwindSafe for ChanErr<I> where
    I: UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[src]

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.