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

Return the exact number of bytes this will still write.

Implementors