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
fn remaining_bytes(&self) -> usize
Return the exact number of bytes this will still write.