Enum dialectic_tokio_serde::Error[][src]

pub enum Error<F: Serializer, G: Deserializer<D::Item>, E: Encoder<F::Output>, D: Decoder> {
    Send(SendError<F, E>),
    Recv(RecvError<G, D>),
}

An error during operations on a Sender or Receiver, unifying SendError and RecvError.

Variants

Send(SendError<F, E>)

An error occurred while attempting to send a value.

Recv(RecvError<G, D>)

An error occurred while attempting to recv a value.

Trait Implementations

impl<F, G, E, D> Clone for Error<F, G, E, D> where
    F: Serializer,
    G: Deserializer<D::Item>,
    E: Encoder<F::Output>,
    D: Decoder,
    F::Error: Clone,
    G::Error: Clone,
    E::Error: Clone,
    D::Error: Clone
[src]

impl<F: Serializer, G: Deserializer<D::Item>, E: Encoder<F::Output>, D: Decoder> Debug for Error<F, G, E, D> where
    F::Error: Debug,
    G::Error: Debug,
    E::Error: Debug,
    D::Error: Debug
[src]

impl<F: Serializer, G: Deserializer<D::Item>, E: Encoder<F::Output>, D: Decoder> Display for Error<F, G, E, D> where
    F::Error: Display,
    G::Error: Display,
    E::Error: Display,
    D::Error: Display
[src]

impl<F, G, E, D> Error for Error<F, G, E, D> where
    F: Serializer,
    G: Deserializer<D::Item>,
    E: Encoder<F::Output>,
    D: Decoder,
    F::Error: Debug + Display,
    G::Error: Debug + Display,
    E::Error: Debug + Display,
    D::Error: Debug + Display
[src]

impl<F, G, E, D> From<RecvError<G, D>> for Error<F, G, E, D> where
    F: Serializer,
    G: Deserializer<D::Item>,
    E: Encoder<F::Output>,
    D: Decoder
[src]

impl<F, G, E, D> From<SendError<F, E>> for Error<F, G, E, D> where
    F: Serializer,
    G: Deserializer<D::Item>,
    E: Encoder<F::Output>,
    D: Decoder
[src]

Auto Trait Implementations

impl<F, G, E, D> RefUnwindSafe for Error<F, G, E, D> where
    <D as Decoder>::Error: RefUnwindSafe,
    <E as Encoder<<F as Serializer>::Output>>::Error: RefUnwindSafe,
    <F as Serializer>::Error: RefUnwindSafe,
    <G as Deserializer<<D as Decoder>::Item>>::Error: RefUnwindSafe

impl<F, G, E, D> Send for Error<F, G, E, D> where
    <D as Decoder>::Error: Send,
    <E as Encoder<<F as Serializer>::Output>>::Error: Send,
    <F as Serializer>::Error: Send,
    <G as Deserializer<<D as Decoder>::Item>>::Error: Send

impl<F, G, E, D> Sync for Error<F, G, E, D> where
    <D as Decoder>::Error: Sync,
    <E as Encoder<<F as Serializer>::Output>>::Error: Sync,
    <F as Serializer>::Error: Sync,
    <G as Deserializer<<D as Decoder>::Item>>::Error: Sync

impl<F, G, E, D> Unpin for Error<F, G, E, D> where
    <D as Decoder>::Error: Unpin,
    <E as Encoder<<F as Serializer>::Output>>::Error: Unpin,
    <F as Serializer>::Error: Unpin,
    <G as Deserializer<<D as Decoder>::Item>>::Error: Unpin

impl<F, G, E, D> UnwindSafe for Error<F, G, E, D> where
    <D as Decoder>::Error: UnwindSafe,
    <E as Encoder<<F as Serializer>::Output>>::Error: UnwindSafe,
    <F as Serializer>::Error: UnwindSafe,
    <G as Deserializer<<D as Decoder>::Item>>::Error: UnwindSafe

Blanket Implementations

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

impl<'a, T, S> As<'a, Val, T> for S where
    S: Into<T>, 

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

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

impl<'a, T> By<'a, Mut> for T where
    T: 'a + ?Sized

type Type = &'a mut T

The type of Self when called by Convention.

impl<'a, T> By<'a, Ref> for T where
    T: 'a + ?Sized

type Type = &'a T

The type of Self when called by Convention.

impl<'a, T> By<'a, Val> for T

type Type = T

The type of Self when called by Convention.

impl<'a, T> Convert<'a, Mut, Mut> for T where
    T: 'a, 

impl<'a, T> Convert<'a, Mut, Ref> for T where
    T: 'a, 

impl<'a, T> Convert<'a, Mut, Val> for T where
    T: 'a + Clone

impl<'a, T> Convert<'a, Ref, Ref> for T where
    T: 'a, 

impl<'a, T> Convert<'a, Ref, Val> for T where
    T: 'a + Clone

impl<'a, T> Convert<'a, Val, Val> for T

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.