Trait async_serialization::AsyncSerializeLen [] [src]

pub trait AsyncSerializeLen<W: AsyncWrite>: AsyncSerialize<W> + AsyncWriterFutureLen<W> {
    fn total_bytes(val: &Self::Serialized) -> usize;
}
Deprecated

An AsyncSerialize that can precompute the exact number of bytes to write.

Required Methods

Deprecated

Compute the exact number of bytes that would be written in total if the given value was serialized.

Implementors