pub trait TlsDeserializeTrait: Size {
    fn tls_deserialize<R>(bytes: &mut R) -> Result<Self, Error>
    where
        R: Read
; }
Expand description

The Deserialize trait defines functions to deserialize a byte slice to a struct or enum.

Required Methods

This function deserializes the bytes from the provided a std::io::Read and returns the populated struct.

In order to get the amount of bytes read, use Size::tls_serialized_len.

Implementations on Foreign Types

Implementors