Enum mqttbytes::v4::Packet[][src]

pub enum Packet {
Show 14 variants Connect(Connect), ConnAck(ConnAck), Publish(Publish), PubAck(PubAck), PubRec(PubRec), PubRel(PubRel), PubComp(PubComp), Subscribe(Subscribe), SubAck(SubAck), Unsubscribe(Unsubscribe), UnsubAck(UnsubAck), PingReq, PingResp, Disconnect,
}
Expand description

Encapsulates all MQTT packet types

Variants

Connect(Connect)

Tuple Fields of Connect

0: Connect
ConnAck(ConnAck)

Tuple Fields of ConnAck

0: ConnAck
Publish(Publish)

Tuple Fields of Publish

0: Publish
PubAck(PubAck)

Tuple Fields of PubAck

0: PubAck
PubRec(PubRec)

Tuple Fields of PubRec

0: PubRec
PubRel(PubRel)

Tuple Fields of PubRel

0: PubRel
PubComp(PubComp)

Tuple Fields of PubComp

0: PubComp
Subscribe(Subscribe)

Tuple Fields of Subscribe

0: Subscribe
SubAck(SubAck)

Tuple Fields of SubAck

0: SubAck
Unsubscribe(Unsubscribe)

Tuple Fields of Unsubscribe

0: Unsubscribe
UnsubAck(UnsubAck)

Tuple Fields of UnsubAck

0: UnsubAck
PingReq
PingResp
Disconnect

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

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

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.