Trait async_serialization::AsyncWriterFuture [] [src]

pub trait AsyncWriterFuture<W: AsyncWrite>: Future<Item = (W, usize), Error = (W, FutIoErr)> {
    fn already_written(&self) -> usize;
}

Base trait for futures that write things into AsyncWrites.

The future must yield a previously wrapped AsyncWrite, and the number of written bytes. If there's an error upon writing, the wrapped AsyncWrite is emitted together with the error.

Required Methods

Return how many bytes have already been written.

Implementors