Trait async_serialization::AsyncSerializeRef
[−]
[src]
pub trait AsyncSerializeRef<'val, W: AsyncWrite>: AsyncWriterFuture<W> { type Serialized; fn new(writer: W, val: &'val Self::Serialized) -> Self; }
A future that asynchronously serializes something by reference into a wrapped AsyncWrite.
Associated Types
type Serialized
The type of values serialized.
Required Methods
fn new(writer: W, val: &'val Self::Serialized) -> Self
Create a new instance, taking a reference to the value to serialize and wrapping the
AsyncWrite
to serialize into.