Trait mqtt::encodable::Decodable [−][src]
pub trait Decodable: Sized { type Err: Error; 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> { ... } }
Methods for decoding bytes to an Object according to MQTT specification
Associated Types
Required Methods
fn decode_with<R: Read>(
reader: &mut R,
cond: Option<Self::Cond>
) -> Result<Self, Self::Err>
reader: &mut R,
cond: Option<Self::Cond>
) -> Result<Self, Self::Err>
Decodes object with additional data (or hints)
Provided Methods
Implementations on Foreign Types
impl Decodable for String
[src]
impl Decodable for String
impl Decodable for Vec<u8>
[src]
impl Decodable for Vec<u8>
impl Decodable for ()
[src]
impl Decodable for ()
Implementors
impl Decodable for FixedHeader type Err = FixedHeaderError; type Cond = ();
impl Decodable for PacketIdentifier type Err = VariableHeaderError; type Cond = ();
impl Decodable for ProtocolName type Err = VariableHeaderError; type Cond = ();
impl Decodable for ProtocolLevel type Err = VariableHeaderError; type Cond = ();
impl Decodable for ConnectFlags type Err = VariableHeaderError; type Cond = ();
impl Decodable for KeepAlive type Err = VariableHeaderError; type Cond = ();
impl Decodable for ConnackFlags type Err = VariableHeaderError; type Cond = ();
impl Decodable for ConnectReturnCode type Err = VariableHeaderError; type Cond = ();
impl Decodable for TopicNameHeader type Err = VariableHeaderError; type Cond = ();
impl Decodable for ConnectPacketPayload type Err = ConnectPacketPayloadError; type Cond = ConnectFlags;
impl Decodable for SubscribePacketPayload type Err = SubscribePacketPayloadError; type Cond = u32;
impl Decodable for SubackPacketPayload type Err = SubackPacketPayloadError; type Cond = u32;
impl Decodable for UnsubscribePacketPayload type Err = UnsubscribePacketPayloadError; type Cond = u32;
impl<T: Packet + Debug> Decodable for T type Err = PacketError<T>; type Cond = FixedHeader;
impl Decodable for VariablePacket type Err = VariablePacketError; type Cond = FixedHeader;
impl Decodable for VarBytes type Err = Error; type Cond = ();
impl Decodable for TopicFilter type Err = TopicFilterError; type Cond = ();
impl Decodable for TopicName type Err = TopicNameError; type Cond = ();