pub enum Packet {
}
Expand description
Encapsulates all MQTT packet types
Variants§
Connect(Connect)
ConnAck(ConnAck)
Publish(Publish)
PubAck(PubAck)
PubRec(PubRec)
PubRel(PubRel)
PubComp(PubComp)
Subscribe(Subscribe)
SubAck(SubAck)
Unsubscribe(Unsubscribe)
UnsubAck(UnsubAck)
PingReq
PingResp
Disconnect
Implementations§
Trait Implementations§
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl !Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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