Enum ntex_mqtt::v3::codec::Packet [−][src]
pub enum Packet {}Show variants
Connect(Connect), ConnectAck { session_present: bool, return_code: ConnectAckReason, }, Publish(Publish), PublishAck { packet_id: NonZeroU16, }, PublishReceived { packet_id: NonZeroU16, }, PublishRelease { packet_id: NonZeroU16, }, PublishComplete { packet_id: NonZeroU16, }, Subscribe { packet_id: NonZeroU16, topic_filters: Vec<(ByteString, QoS)>, }, SubscribeAck { packet_id: NonZeroU16, status: Vec<SubscribeReturnCode>, }, Unsubscribe { packet_id: NonZeroU16, topic_filters: Vec<ByteString>, }, UnsubscribeAck { packet_id: NonZeroU16, }, PingRequest, PingResponse, Disconnect,
MQTT Control Packets
Variants
Connect(Connect)
Client request to connect to Server
Connect acknowledgment
Show fields
Fields of ConnectAck
session_present: bool
enables a Client to establish whether the Client and Server have a consistent view about whether there is already stored Session state.
return_code: ConnectAckReason
Publish(Publish)
Publish message
Publish acknowledgment
Show fields
Fields of PublishAck
packet_id: NonZeroU16
Packet Identifier
Publish received (assured delivery part 1)
Show fields
Fields of PublishReceived
packet_id: NonZeroU16
Packet Identifier
Publish release (assured delivery part 2)
Show fields
Fields of PublishRelease
packet_id: NonZeroU16
Packet Identifier
Publish complete (assured delivery part 3)
Show fields
Fields of PublishComplete
packet_id: NonZeroU16
Packet Identifier
Client subscribe request
Show fields
Fields of Subscribe
packet_id: NonZeroU16
Packet Identifier
topic_filters: Vec<(ByteString, QoS)>
the list of Topic Filters and QoS to which the Client wants to subscribe.
Subscribe acknowledgment
Show fields
Fields of SubscribeAck
packet_id: NonZeroU16
status: Vec<SubscribeReturnCode>
corresponds to a Topic Filter in the SUBSCRIBE Packet being acknowledged.
Unsubscribe request
Show fields
Fields of Unsubscribe
packet_id: NonZeroU16
Packet Identifier
topic_filters: Vec<ByteString>
the list of Topic Filters that the Client wishes to unsubscribe from.
Unsubscribe acknowledgment
Show fields
Fields of UnsubscribeAck
packet_id: NonZeroU16
Packet Identifier
PING request
PING response
Client is disconnecting
Implementations
impl Packet
[src]
impl Packet
[src]pub fn packet_type(&self) -> u8
[src]
Trait Implementations
impl StructuralPartialEq for Packet
[src]
impl StructuralPartialEq for Packet
[src]Auto Trait Implementations
impl RefUnwindSafe for Packet
impl RefUnwindSafe for Packet
impl UnwindSafe for Packet
impl UnwindSafe for Packet
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self