pub trait Size {
    fn tls_serialized_len(&self) -> usize;
}
Expand description

The Size trait needs to be implemented by any struct that should be efficiently serialized. This allows to collect the length of a serialized structure before allocating memory.

Required methods

Implementations on Foreign Types

Implementors