[][src]Trait sage_mqtt::Encode

pub trait Encode {
    fn encode<W: Write>(&self, writer: &mut W) -> SageResult<usize>;
}

The Encode trait describes how to write a type into an MQTT stream.

Required methods

fn encode<W: Write>(&self, writer: &mut W) -> SageResult<usize>

Encodes this and writes it into write, returning how many bytes were written.

Loading content...

Implementors

impl Encode for VariableByteInteger[src]

impl Encode for BinaryData[src]

impl Encode for Bits[src]

impl Encode for FourByteInteger[src]

impl Encode for TwoByteInteger[src]

impl Encode for UTF8String[src]

Loading content...