Trait mqtt::encodable::Decodable [] [src]

pub trait Decodable<'a>: Sized {
    type Err: Error + 'a;
    type Cond;
    fn decode_with<R: Read>(
        reader: &mut R,
        cond: Option<Self::Cond>
    ) -> Result<Self, Self::Err>; fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err> { ... } }

Methods for decoding bytes to an Object according to MQTT specification

Associated Types

Required Methods

Decodes object with additional data (or hints)

Provided Methods

Decodes object from reader

Implementors