Trait mqtt::encodable::Decodable
[−]
[src]
pub trait Decodable<'a>: Sized { type Err: Error + 'a; type Cond; fn decode_with<R: Read>(reader: &mut R, Cond: Option<Self::Cond>) -> Result<Self, Self::Err>; fn decode<R: Read>(reader: &mut R) -> Result<Self, Self::Err> { ... } }
Associated Types
Required Methods
fn decode_with<R: Read>(reader: &mut R, Cond: Option<Self::Cond>) -> Result<Self, Self::Err>
Provided Methods
Implementors
impl<'a> Decodable<'a> for FixedHeader
impl<'a> Decodable<'a> for PacketIdentifier
impl<'a> Decodable<'a> for ProtocolName
impl<'a> Decodable<'a> for ProtocolLevel
impl<'a> Decodable<'a> for ConnectFlags
impl<'a> Decodable<'a> for KeepAlive
impl<'a> Decodable<'a> for ConnackFlags
impl<'a> Decodable<'a> for ConnectReturnCode
impl<'a> Decodable<'a> for TopicNameHeader
impl<'a> Decodable<'a> for ConnectPacketPayload
impl<'a> Decodable<'a> for SubscribePacketPayload
impl<'a> Decodable<'a> for SubackPacketPayload
impl<'a> Decodable<'a> for UnsubscribePacketPayload
impl<'a, T: Packet<'a> + Debug + 'a> Decodable<'a> for T
impl<'a> Decodable<'a> for VariablePacket
impl<'a> Decodable<'a> for String
impl<'a> Decodable<'a> for Vec<u8>
impl<'a> Decodable<'a> for ()
impl<'a> Decodable<'a> for TopicFilter
impl<'a> Decodable<'a> for TopicName