[][src]Struct tokio_simplified::IoWriter

pub struct IoWriter<SendType> { /* 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<SendType> IoWriter<SendType> where
    SendType: Send + 'static, 
[src]

pub fn new<SinkType>(sink: SinkType) -> Self where
    SinkType: Sink<SinkItem = SendType> + Send + 'static, 
[src]

pub fn write<T: Into<SendType>>(&mut self, frame: T) -> PromiseHandle<()>[src]

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

Trait Implementations

impl<SendType> Clone for IoWriter<SendType>[src]

Auto Trait Implementations

impl<SendType> Send for IoWriter<SendType> where
    SendType: Send

impl<SendType> Sync for IoWriter<SendType> where
    SendType: Send

impl<SendType> Unpin for IoWriter<SendType>

impl<SendType> !UnwindSafe for IoWriter<SendType>

impl<SendType> !RefUnwindSafe for IoWriter<SendType>

Blanket Implementations

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 = !

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.

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

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

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

impl<T> Erased for T