#[repr(u8)]pub enum PktType {
PUBLISH = 2,
SUBSCRIBE = 3,
UNSUBSCRIBE = 4,
QUERY = 5,
PUBLISHACK = 11,
SUBSCRIBEACK = 12,
UNSUBSCRIBEACK = 13,
QUERYRESP = 14,
}Expand description
Packet type
Variants§
PUBLISH = 2
publish
SUBSCRIBE = 3
subscribe
UNSUBSCRIBE = 4
unsubscribe
QUERY = 5
query the topics
PUBLISHACK = 11
acknowledgement to publish
SUBSCRIBEACK = 12
acknowledgement to subscribe
UNSUBSCRIBEACK = 13
acknowledgement to unsubscribe
QUERYRESP = 14
response to the query packet
Implementations§
Trait Implementations§
impl StructuralPartialEq for PktType
Auto Trait Implementations§
impl Freeze for PktType
impl RefUnwindSafe for PktType
impl Send for PktType
impl Sync for PktType
impl Unpin for PktType
impl UnwindSafe for PktType
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