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> { ... }
}

Associated Types

type Err: Error + 'a

type Cond

Required Methods

fn decode_with<R: Read>(reader: &mut R, Cond: Option<Self::Cond>) -> Result<Self, Self::Err>

Provided Methods

fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err>

Implementors