Trait async_codec::AsyncEncodeLen [] [src]

pub trait AsyncEncodeLen<W: AsyncWrite>: AsyncEncode<W> {
    fn remaining_bytes(&self) -> usize;
}

An AsyncEncode that can precompute how many bytes of encoded data it produces.

Required Methods

Return the exact number of bytes this will still write.

This may not be called once poll_encode returned Ok(0).

Implementors