Trait async_serialization::AsyncSerializeRefLen
[−]
[src]
pub trait AsyncSerializeRefLen<'val, W: AsyncWrite>: AsyncSerializeRef<'val, W> + AsyncWriterFutureLen<W> { fn total_bytes(_: &Self::Serialized) -> usize; }
An AsyncSerializeRef
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.