#[repr(u8)]pub enum PacketType {
Show 15 variants
Connect = 1,
ConnectAck = 2,
Publish = 3,
PublishAck = 4,
PublishReceived = 5,
PublishRelease = 6,
PublishComplete = 7,
Subscribe = 8,
SubscribeAck = 9,
Unsubscribe = 10,
UnsubscribeAck = 11,
PingRequest = 12,
PingResponse = 13,
Disconnect = 14,
Authenticate = 15,
}
Variants§
Connect = 1
ConnectAck = 2
Publish = 3
PublishAck = 4
PublishReceived = 5
PublishRelease = 6
PublishComplete = 7
Subscribe = 8
SubscribeAck = 9
Unsubscribe = 10
UnsubscribeAck = 11
PingRequest = 12
PingResponse = 13
Disconnect = 14
Authenticate = 15
Trait Implementations§
Source§impl Debug for PacketType
impl Debug for PacketType
Source§impl TryFrom<u8> for PacketType
impl TryFrom<u8> for PacketType
Source§type Error = TryFromPrimitiveError<PacketType>
type Error = TryFromPrimitiveError<PacketType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PacketType
impl TryFromPrimitive 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