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