Trait mqtt::encodable::Encodable
[−]
[src]
pub trait Encodable<'a> {
type Err: Error + 'a;
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>;
fn encoded_length(&self) -> u32;
}
Associated Types
Required Methods
Implementors
impl<'a> Encodable<'a> for FixedHeaderimpl<'a> Encodable<'a> for PacketIdentifierimpl<'a> Encodable<'a> for ProtocolNameimpl<'a> Encodable<'a> for ProtocolLevelimpl<'a> Encodable<'a> for ConnectFlagsimpl<'a> Encodable<'a> for KeepAliveimpl<'a> Encodable<'a> for ConnackFlagsimpl<'a> Encodable<'a> for ConnectReturnCodeimpl<'a> Encodable<'a> for TopicNameHeaderimpl<'a> Encodable<'a> for ConnectPacketPayloadimpl<'a> Encodable<'a> for SubscribePacketPayloadimpl<'a> Encodable<'a> for SubackPacketPayloadimpl<'a> Encodable<'a> for UnsubscribePacketPayloadimpl<'a, T: Packet<'a> + Debug + 'a> Encodable<'a> for Timpl<'a> Encodable<'a> for VariablePacketimpl<'a> Encodable<'a> for &'a strimpl<'a> Encodable<'a> for &'a [u8]impl<'a> Encodable<'a> for Stringimpl<'a> Encodable<'a> for Vec<u8>impl<'a> Encodable<'a> for ()impl<'a> Encodable<'a> for TopicFilterimpl<'a> Encodable<'a> for TopicName