pub enum DumpMqtt {
Show 14 variants
Connect(String),
Connack(DumpConnack),
Publish(DumpPublish),
Puback(DumpPid),
Pubrec(DumpPid),
Pubrel(DumpPid),
Pubcomp(DumpPid),
Subscribe(DumpSubscribe),
Suback(DumpSuback),
Unsubscribe(DumpUnsubscribe),
Unsuback(DumpPid),
Pingreq,
Pingresp,
Disconnect,
}
Expand description
Parsed MQTT packet.
We use our own struct and substructs instead of the mqttrs
ones, so that we can implement json
serialisation, and add/remove some fields for readbility/unit-testing.
Variants§
Connect(String)
The string is the client id.
Connack(DumpConnack)
Publish(DumpPublish)
Puback(DumpPid)
Pubrec(DumpPid)
Pubrel(DumpPid)
Pubcomp(DumpPid)
Subscribe(DumpSubscribe)
Suback(DumpSuback)
Unsubscribe(DumpUnsubscribe)
Unsuback(DumpPid)
Pingreq
Pingresp
Disconnect
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DumpMqtt
impl<'de> Deserialize<'de> for DumpMqtt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DumpMqtt
impl RefUnwindSafe for DumpMqtt
impl Send for DumpMqtt
impl Sync for DumpMqtt
impl Unpin for DumpMqtt
impl UnwindSafe for DumpMqtt
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