Enum mqtt::packet::VariablePacket [−][src]
pub enum VariablePacket {
Show 14 variants
ConnectPacket(ConnectPacket),
ConnackPacket(ConnackPacket),
PublishPacket(PublishPacket),
PubackPacket(PubackPacket),
PubrecPacket(PubrecPacket),
PubrelPacket(PubrelPacket),
PubcompPacket(PubcompPacket),
PingreqPacket(PingreqPacket),
PingrespPacket(PingrespPacket),
SubscribePacket(SubscribePacket),
SubackPacket(SubackPacket),
UnsubscribePacket(UnsubscribePacket),
UnsubackPacket(UnsubackPacket),
DisconnectPacket(DisconnectPacket),
}Expand description
Variable packet
Variants
ConnectPacket(ConnectPacket)Tuple Fields of ConnectPacket
ConnackPacket(ConnackPacket)Tuple Fields of ConnackPacket
PublishPacket(PublishPacket)Tuple Fields of PublishPacket
PubackPacket(PubackPacket)Tuple Fields of PubackPacket
0: PubackPacketPubrecPacket(PubrecPacket)Tuple Fields of PubrecPacket
0: PubrecPacketPubrelPacket(PubrelPacket)Tuple Fields of PubrelPacket
0: PubrelPacketPubcompPacket(PubcompPacket)Tuple Fields of PubcompPacket
PingreqPacket(PingreqPacket)Tuple Fields of PingreqPacket
PingrespPacket(PingrespPacket)Tuple Fields of PingrespPacket
SubscribePacket(SubscribePacket)Tuple Fields of SubscribePacket
SubackPacket(SubackPacket)Tuple Fields of SubackPacket
0: SubackPacketUnsubscribePacket(UnsubscribePacket)Tuple Fields of UnsubscribePacket
UnsubackPacket(UnsubackPacket)Tuple Fields of UnsubackPacket
DisconnectPacket(DisconnectPacket)Tuple Fields of DisconnectPacket
Implementations
Trait Implementations
type Error = VariablePacketError
type Cond = Option<FixedHeader>
fn decode_with<R: Read>(
reader: &mut R,
fixed_header: Self::Cond
) -> Result<VariablePacket, Self::Error>
fn decode_with<R: Read>(
reader: &mut R,
fixed_header: Self::Cond
) -> Result<VariablePacket, Self::Error>
Decodes object with additional data (or hints)
Get a reference to FixedHeader. All MQTT packet must have a fixed header.
Encodes packet data after fixed header, including variable headers and payload
Length in bytes for data after fixed header, including variable headers and payload
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for VariablePacket
impl Send for VariablePacket
impl Sync for VariablePacket
impl Unpin for VariablePacket
impl UnwindSafe for VariablePacket
Blanket Implementations
Mutably borrows from an owned value. Read more