[][src]Trait sage_mqtt::Decode

pub trait Decode: Sized {
    fn decode<R: Read>(reader: &mut R) -> SageResult<Self>;
}

The Decode trait is implemented for any type that can be read from a stream.

Required methods

fn decode<R: Read>(reader: &mut R) -> SageResult<Self>

Reads the input Reader and returns the parsed data.

Loading content...

Implementors

impl Decode for ControlPacket[src]

impl Decode for QoS[src]

impl Decode for BinaryData[src]

impl Decode for Bits[src]

impl Decode for Byte[src]

impl Decode for FourByteInteger[src]

impl Decode for SubscriptionOptions[src]

impl Decode for TwoByteInteger[src]

impl Decode for UTF8String[src]

impl Decode for VariableByteInteger[src]

Loading content...