Trait async_serialization::AsyncSerializeLen
[−]
[src]
pub trait AsyncSerializeLen<W: AsyncWrite>: AsyncSerialize<W> + AsyncWriterFutureLen<W> { fn total_bytes(_: &Self::Serialized) -> usize; }
An AsyncSerialize
that can precompute the exact number of bytes to write.
Required Methods
fn total_bytes(_: &Self::Serialized) -> usize
Compute the exact number of bytes that would be written in total if the given value was serialized.