[][src]Trait der::Decodable

pub trait Decodable<'a>: Sized {
    pub fn decode(decoder: &mut Decoder<'a>) -> Result<Self>;

    pub fn from_bytes(bytes: &'a [u8]) -> Result<Self> { ... }
}

Decoding trait.

Required methods

pub fn decode(decoder: &mut Decoder<'a>) -> Result<Self>[src]

Attempt to decode this message using the provided decoder.

Loading content...

Provided methods

pub fn from_bytes(bytes: &'a [u8]) -> Result<Self>[src]

Parse Self from the provided byte slice.

Loading content...

Implementations on Foreign Types

impl<'a, T> Decodable<'a> for Option<T> where
    T: Decodable<'a>, 
[src]

Loading content...

Implementors

impl<'_> Decodable<'_> for Tag[src]

impl<'_> Decodable<'_> for Length[src]

impl<'a> Decodable<'a> for Any<'a>[src]

impl<'a, T> Decodable<'a> for T where
    T: TryFrom<Any<'a>, Error = Error>, 
[src]

Loading content...