Enum simple_pub_sub::message::PktType
source · pub enum PktType {
PUBLISH,
SUBSCRIBE,
UNSUBSCRIBE,
QUERY,
PUBLISHACK,
SUBSCRIBEACK,
UNSUBSCRIBEACK,
QUERYRESP,
}Expand description
Packet type
Variants§
PUBLISH
publish
SUBSCRIBE
subscribe
UNSUBSCRIBE
unsubscribe
QUERY
query the topics
PUBLISHACK
acknoledgement to publish
SUBSCRIBEACK
acknoledgement to subscribe
UNSUBSCRIBEACK
acknoledgement to unsubscribe
QUERYRESP
response to the query packet
Implementations§
Trait Implementations§
source§impl PartialEq for PktType
impl PartialEq for PktType
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