Trait mqtt::encodable::Encodable [] [src]

pub trait Encodable<'a> {
    type Err: Error + 'a;
    fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>;
    fn encoded_length(&self) -> u32;
}

Associated Types

type Err: Error + 'a

Required Methods

fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>

fn encoded_length(&self) -> u32

Implementors