pub trait SerializeBytes: Size {
// Required method
fn tls_serialize(&self) -> Result<Vec<u8>, Error>;
}Expand description
The SerializeBytes trait provides a function to serialize a struct or enum.
The trait provides one function:
tls_serializethat returns a byte vector