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
ConnectAck(Box<ConnectAck>)
Connect acknowledgment
Tuple Fields of ConnectAck
0: Box<ConnectAck>
Publish(Publish)
Publish message
Tuple Fields of Publish
0: Publish
PublishAck(PublishAck)
Publish acknowledgment
Tuple Fields of PublishAck
0: PublishAck
PublishReceived(PublishAck)
Publish received (assured delivery part 1)
Tuple Fields of PublishReceived
0: PublishAck
PublishRelease(PublishAck2)
Publish release (assured delivery part 2)
Tuple Fields of PublishRelease
0: PublishAck2
PublishComplete(PublishAck2)
Publish complete (assured delivery part 3)
Tuple Fields of PublishComplete
0: PublishAck2
Subscribe(Subscribe)
Client subscribe request
Tuple Fields of Subscribe
0: Subscribe
SubscribeAck(SubscribeAck)
Subscribe acknowledgment
Tuple Fields of SubscribeAck
0: SubscribeAck
Unsubscribe(Unsubscribe)
Unsubscribe request
Tuple Fields of Unsubscribe
0: Unsubscribe
UnsubscribeAck(UnsubscribeAck)
Unsubscribe acknowledgment
Tuple Fields of UnsubscribeAck
PING request
PING response
Disconnect(Disconnect)
Disconnection is advertised
Tuple Fields of Disconnect
0: Disconnect
Auth(Auth)
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more