[][src]Struct tokio_simplified::IoWriter

pub struct IoWriter<Codec> where
    Codec: Encoder
{ /* fields omitted */ }

A simple interface to interact with a tokio sink.

Should always be constructed by a call to some IoManager's get_writer().

Methods

impl<Codec> IoWriter<Codec> where
    Codec: Encoder,
    <Codec as Encoder>::Item: Send + 'static, 
[src]

pub fn write(&mut self, frame: <Codec as Encoder>::Item) -> PromiseHandle<()>[src]

Forwards the frame to the tokio sink associated with the IoManager that build this instance.

Trait Implementations

impl<Codec> Clone for IoWriter<Codec> where
    Codec: Encoder
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<Codec> Send for IoWriter<Codec> where
    <Codec as Encoder>::Item: Send

impl<Codec> Sync for IoWriter<Codec> where
    <Codec as Encoder>::Item: Send

Blanket Implementations

impl<T, U> Into 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> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Erased for T