Trait async_codec::AsyncEncodeLen
[−]
[src]
pub trait AsyncEncodeLen: AsyncEncode { 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.