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
fn encoded_length(&self) -> u32
fn encoded_length(&self) -> u32
Length of bytes after encoded