Trait async_serialization::AsyncSerialize [] [src]

pub trait AsyncSerialize<W: AsyncWrite>: AsyncWriterFuture<W> {
    type Serialized;
    fn new(writer: W, val: Self::Serialized) -> Self;
}

A future that asynchronously serializes something into a wrapped AsyncWrite and then returns the wrapped AsyncWrite and how many bytes were written.

Associated Types

The type of values serialized.

Required Methods

Create a new instance, consuming the value to serialize and wrapping the AsyncWrite to serialize into.

Implementors