Trait Size
pub trait Size {
// Required method
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§
fn tls_serialized_len(&self) -> usize
Implementations on Foreign Types§
§impl Size for &HpkePublicKey
Available on crate feature serialization only.
impl Size for &HpkePublicKey
Available on crate feature
serialization only.fn tls_serialized_len(&self) -> usize
§impl Size for &SignatureKeyPair
impl Size for &SignatureKeyPair
fn tls_serialized_len(&self) -> usize
§impl Size for HpkePublicKey
Available on crate feature serialization only.
impl Size for HpkePublicKey
Available on crate feature
serialization only.