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
Connect(Box<Connect>)
Client request to connect to Server
ConnectAck(Box<ConnectAck>)
Tuple Fields
0: Box<ConnectAck>
Connect acknowledgment
Publish(Publish)
Tuple Fields
0: Publish
Publish message
PublishAck(PublishAck)
Tuple Fields
0: PublishAck
Publish acknowledgment
PublishReceived(PublishAck)
Tuple Fields
0: PublishAck
Publish received (assured delivery part 1)
PublishRelease(PublishAck2)
Tuple Fields
0: PublishAck2
Publish release (assured delivery part 2)
PublishComplete(PublishAck2)
Tuple Fields
0: PublishAck2
Publish complete (assured delivery part 3)
Subscribe(Subscribe)
Tuple Fields
0: Subscribe
Client subscribe request
SubscribeAck(SubscribeAck)
Tuple Fields
0: SubscribeAck
Subscribe acknowledgment
Unsubscribe(Unsubscribe)
Tuple Fields
0: Unsubscribe
Unsubscribe request
UnsubscribeAck(UnsubscribeAck)
Tuple Fields
Unsubscribe acknowledgment
PingRequest
PING request
PingResponse
PING response
Disconnect(Disconnect)
Tuple Fields
0: Disconnect
Disconnection is advertised
Auth(Auth)
Tuple Fields
0: Auth
Auth exchange
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
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