Enum PacketType
#[repr(u8)]pub enum PacketType {
Show 15 variants
Connect = 1,
Connack = 2,
Publish = 3,
Puback = 4,
Pubrec = 5,
Pubrel = 6,
Pubcomp = 7,
Subscribe = 8,
Suback = 9,
Unsubscribe = 10,
Unsuback = 11,
Pingreq = 12,
Pingresp = 13,
Disconnect = 14,
Auth = 15,
}Expand description
MQTT v5 packet type (4-bit value from the fixed header).
Variants§
Connect = 1
Client-to-server connection request.
Connack = 2
Server-to-client connection acknowledgement.
Publish = 3
Publish message.
Puback = 4
Publish acknowledgement (QoS 1).
Pubrec = 5
Publish received (QoS 2, step 1).
Pubrel = 6
Publish release (QoS 2, step 2).
Pubcomp = 7
Publish complete (QoS 2, step 3).
Subscribe = 8
Subscribe request.
Suback = 9
Subscribe acknowledgement.
Unsubscribe = 10
Unsubscribe request.
Unsuback = 11
Unsubscribe acknowledgement.
Pingreq = 12
Ping request.
Pingresp = 13
Ping response.
Disconnect = 14
Disconnect notification.
Auth = 15
Authentication exchange.
Implementations§
§impl PacketType
impl PacketType
Trait Implementations§
§impl Clone for PacketType
impl Clone for PacketType
§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PacketType
impl Debug for PacketType
§impl Hash for PacketType
impl Hash for PacketType
§impl PartialEq for PacketType
impl PartialEq for PacketType
impl Copy for PacketType
impl Eq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more