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

0: ConnectPacket
ConnackPacket(ConnackPacket)

Tuple Fields of ConnackPacket

0: ConnackPacket
PublishPacket(PublishPacket)

Tuple Fields of PublishPacket

0: PublishPacket
PubackPacket(PubackPacket)

Tuple Fields of PubackPacket

0: PubackPacket
PubrecPacket(PubrecPacket)

Tuple Fields of PubrecPacket

0: PubrecPacket
PubrelPacket(PubrelPacket)

Tuple Fields of PubrelPacket

0: PubrelPacket
PubcompPacket(PubcompPacket)

Tuple Fields of PubcompPacket

0: PubcompPacket
PingreqPacket(PingreqPacket)

Tuple Fields of PingreqPacket

0: PingreqPacket
PingrespPacket(PingrespPacket)

Tuple Fields of PingrespPacket

0: PingrespPacket
SubscribePacket(SubscribePacket)

Tuple Fields of SubscribePacket

0: SubscribePacket
SubackPacket(SubackPacket)

Tuple Fields of SubackPacket

0: SubackPacket
UnsubscribePacket(UnsubscribePacket)

Tuple Fields of UnsubscribePacket

0: UnsubscribePacket
UnsubackPacket(UnsubackPacket)

Tuple Fields of UnsubackPacket

0: UnsubackPacket
DisconnectPacket(DisconnectPacket)

Tuple Fields of DisconnectPacket

0: DisconnectPacket

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Decodes object with additional data (or hints)

Decodes object from reader

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Encodes to writer

Length of bytes after encoded

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.