[−][src]Trait mqtt::encodable::Encodable
Methods for encoding an Object to bytes according to MQTT specification
Associated Types
Loading content...Required methods
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
Encodes to writer
fn encoded_length(&self) -> u32
Length of bytes after encoded
Implementations on Foreign Types
impl<'a> Encodable for &'a str
[src]
type Err = StringEncodeError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), StringEncodeError>
[src]
fn encoded_length(&self) -> u32
[src]
impl<'a> Encodable for &'a [u8]
[src]
type Err = Error
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for String
[src]
type Err = StringEncodeError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), StringEncodeError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for Vec<u8>
[src]
type Err = Error
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for ()
[src]
type Err = NoError
fn encode<W: Write>(&self, _: &mut W) -> Result<(), NoError>
[src]
fn encoded_length(&self) -> u32
[src]
Implementors
impl Encodable for ConnectReturnCode
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for VariablePacket
[src]
type Err = VariablePacketError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariablePacketError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for FixedHeader
[src]
type Err = FixedHeaderError
fn encode<W: Write>(&self, wr: &mut W) -> Result<(), FixedHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for ProtocolLevel
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for ConnackFlags
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for ConnectFlags
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for KeepAlive
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for PacketIdentifier
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for ProtocolName
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for TopicNameHeader
[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for VarBytes
[src]
type Err = Error
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
[src]
fn encoded_length(&self) -> u32
[src]
impl Encodable for ConnectPacketPayload
[src]
type Err = ConnectPacketPayloadError
fn encode<W: Write>(
&self,
writer: &mut W
) -> Result<(), ConnectPacketPayloadError>
[src]
&self,
writer: &mut W
) -> Result<(), ConnectPacketPayloadError>