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: PublishPublish acknowledgment
Tuple Fields of PublishAck
0: PublishAckPublish received (assured delivery part 1)
Tuple Fields of PublishReceived
0: PublishAckPublish release (assured delivery part 2)
Tuple Fields of PublishRelease
0: PublishAck2Publish complete (assured delivery part 3)
Tuple Fields of PublishComplete
0: PublishAck2Client subscribe request
Tuple Fields of Subscribe
0: SubscribeSubscribe acknowledgment
Tuple Fields of SubscribeAck
0: SubscribeAckUnsubscribe request
Tuple Fields of Unsubscribe
0: UnsubscribeUnsubscribe acknowledgment
Tuple Fields of UnsubscribeAck
PING request
PING response
Disconnection is advertised
Tuple Fields of Disconnect
0: DisconnectAuth exchange
Tuple Fields of Auth
0: AuthImplementations
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