Enum ntex_mqtt::v5::codec::Packet [−][src]
pub enum Packet {
Show 15 variants
Connect(Box<Connect>),
ConnectAck(Box<ConnectAck>),
Publish(Publish),
PublishAck(PublishAck),
PublishReceived(PublishAck),
PublishRelease(PublishAck2),
PublishComplete(PublishAck2),
Subscribe(Subscribe),
SubscribeAck(SubscribeAck),
Unsubscribe(Unsubscribe),
UnsubscribeAck(UnsubscribeAck),
PingRequest,
PingResponse,
Disconnect(Disconnect),
Auth(Auth),
}
Expand description
MQTT Control Packets
Variants
Client request to connect to Server
Connect acknowledgment
Tuple Fields of ConnectAck
0: Box<ConnectAck>
Publish message
Tuple Fields of Publish
0: Publish
Publish acknowledgment
Tuple Fields of PublishAck
0: PublishAck
Publish received (assured delivery part 1)
Tuple Fields of PublishReceived
0: PublishAck
Publish release (assured delivery part 2)
Tuple Fields of PublishRelease
0: PublishAck2
Publish complete (assured delivery part 3)
Tuple Fields of PublishComplete
0: PublishAck2
Client subscribe request
Tuple Fields of Subscribe
0: Subscribe
Subscribe acknowledgment
Tuple Fields of SubscribeAck
0: SubscribeAck
Unsubscribe request
Tuple Fields of Unsubscribe
0: Unsubscribe
Unsubscribe acknowledgment
Tuple Fields of UnsubscribeAck
PING request
PING response
Disconnection is advertised
Tuple Fields of Disconnect
0: Disconnect
Auth exchange
Tuple Fields of Auth
0: Auth
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Packet
impl UnwindSafe for Packet
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self