[][src]Enum mqttest::DumpMqtt

pub enum DumpMqtt {
    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,
}

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

Methods

impl DumpMqtt[src]

pub fn kind(&self) -> &'static str[src]

Trait Implementations

impl Clone for DumpMqtt[src]

impl Debug for DumpMqtt[src]

impl<'de> Deserialize<'de> for DumpMqtt[src]

impl Serialize for DumpMqtt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,