pub trait Encodable {
    fn encode<W: Write>(&self, writer: &mut W) -> Result<()>;
fn encoded_length(&self) -> u32; }
Expand description

Methods for encoding an Object to bytes according to MQTT specification

Required methods

Encodes to writer

Length of bytes after encoded

Implementations on Foreign Types

Implementors