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

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

Required methods

This is supported on crate feature std only.

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

This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.
This is supported on crate feature std only.

Implementors