Struct dialectic_tokio_serde::Sender[][src]

pub struct Sender<F, E, W> { /* fields omitted */ }

A Sender<F, E, W> is capable of sending any Serialize value using the serialization format F and the frame encoding E to the asynchronous writer W.

Implementations

impl<F: Serializer, E: Encoder<F::Output>, W: AsyncWrite> Sender<F, E, W>[src]

pub fn new(serializer: F, encoder: E, writer: W) -> Self[src]

Construct a new Sender given a Serializer, Encoder, and AsyncWriter.

Trait Implementations

impl<F: Debug, E: Debug, W: Debug> Debug for Sender<F, E, W>[src]

impl<T, F, E, W> Transmit<T, Mut> for Sender<F, E, W> where
    T: Serialize + Sync,
    F: Serializer + Unpin + Send,
    F::Output: Send,
    F::Error: Send,
    E: Encoder<F::Output> + Send,
    W: AsyncWrite + Unpin + Send
[src]

impl<T, F, E, W> Transmit<T, Ref> for Sender<F, E, W> where
    T: Serialize + Sync,
    F: Serializer + Unpin + Send,
    F::Output: Send,
    F::Error: Send,
    E: Encoder<F::Output> + Send,
    W: AsyncWrite + Unpin + Send
[src]

impl<T, F, E, W> Transmit<T, Val> for Sender<F, E, W> where
    T: Serialize + Send + 'static,
    F: Serializer + Unpin + Send,
    F::Output: Send,
    F::Error: Send,
    E: Encoder<F::Output> + Send,
    W: AsyncWrite + Unpin + Send
[src]

impl<F, E, W> Transmitter for Sender<F, E, W> where
    F: Serializer + Unpin + Send,
    F::Output: Send,
    F::Error: Send,
    E: Encoder<F::Output> + Send,
    W: AsyncWrite + Unpin + Send
[src]

type Error = SendError<F, E>

The type of possible errors when sending.

Auto Trait Implementations

impl<F, E, W> RefUnwindSafe for Sender<F, E, W> where
    E: RefUnwindSafe,
    F: RefUnwindSafe,
    W: RefUnwindSafe

impl<F, E, W> Send for Sender<F, E, W> where
    E: Send,
    F: Send,
    W: Send

impl<F, E, W> Sync for Sender<F, E, W> where
    E: Sync,
    F: Sync,
    W: Sync

impl<F, E, W> Unpin for Sender<F, E, W> where
    F: Unpin,
    W: Unpin

impl<F, E, W> UnwindSafe for Sender<F, E, W> where
    E: UnwindSafe,
    F: UnwindSafe,
    W: 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, Ref, Ref> for T where
    T: 'a, 

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, 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.