Enum ntex_mqtt::v3::codec::Packet [−][src]
MQTT Control Packets
Variants
Connect(Connect)
Client request to connect to Server
Connect acknowledgment
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
Fields of PublishAck
packet_id: NonZeroU16
Packet Identifier
Publish received (assured delivery part 1)
Fields of PublishReceived
packet_id: NonZeroU16
Packet Identifier
Publish release (assured delivery part 2)
Fields of PublishRelease
packet_id: NonZeroU16
Packet Identifier
Publish complete (assured delivery part 3)
Fields of PublishComplete
packet_id: NonZeroU16
Packet Identifier
Client subscribe request
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
Fields of SubscribeAck
packet_id: NonZeroU16
status: Vec<SubscribeReturnCode>
corresponds to a Topic Filter in the SUBSCRIBE Packet being acknowledged.
Unsubscribe request
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
Fields of UnsubscribeAck
packet_id: NonZeroU16
Packet Identifier
PING request
PING response
Client is disconnecting
Implementations
impl Packet
[src]
pub fn packet_type(&self) -> u8
[src]
Trait Implementations
impl Clone for Packet
[src]
impl Debug for Packet
[src]
impl From<Connect> for Packet
[src]
impl From<Publish> for Packet
[src]
impl PartialEq<Packet> for Packet
[src]
impl StructuralPartialEq for Packet
[src]
Auto Trait Implementations
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,