pub enum Packet {
Show 14 variants
Connect(Box<Connect>),
Connack(Connack),
Publish(Box<Publish>),
Puback(PacketIdentifier),
Pubrec(PacketIdentifier),
Pubrel(PacketIdentifier),
Pubcomp(PacketIdentifier),
Subscribe(Box<Subscribe>),
Suback(Box<Suback>),
Unsubscribe(Box<Unsubscribe>),
Unsuback(PacketIdentifier),
Pingreq,
Pingresp,
Disconnect,
}
Variants
Connect(Box<Connect>)
Connack(Connack)
Publish(Box<Publish>)
Puback(PacketIdentifier)
Pubrec(PacketIdentifier)
Pubrel(PacketIdentifier)
Pubcomp(PacketIdentifier)
Subscribe(Box<Subscribe>)
Suback(Box<Suback>)
Unsubscribe(Box<Unsubscribe>)
Unsuback(PacketIdentifier)
Pingreq
Pingresp
Disconnect
Trait Implementations
impl StructuralPartialEq for Packet
Auto Trait Implementations
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more