Trait tls_codec::Deserialize[][src]

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

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

The trait provides one function:

  • tls_deserialize takes a std::io::Read to read from. This will usually be a byte slice.

Required methods

Implementations on Foreign Types

Implementors