Enum mqttrust_core::Notification[][src]

pub enum Notification {
    ConnAck,
    Publish(Box<BOXED_PUBLISH, Init>),
    Puback(Pid),
    Pubrec(Pid),
    Pubcomp(Pid),
    Unsuback(Pid),
    Abort(EventError),
}
Expand description

Includes incoming packets from the network and other interesting events happening in the eventloop

Variants

ConnAck

Incoming connection acknowledge

Publish(Box<BOXED_PUBLISH, Init>)

Incoming publish from the broker

Tuple Fields of Publish

0: Box<BOXED_PUBLISH, Init>
Puback(Pid)

Incoming puback from the broker

Tuple Fields of Puback

0: Pid
Pubrec(Pid)

Incoming pubrec from the broker

Tuple Fields of Pubrec

0: Pid
Pubcomp(Pid)

Incoming pubcomp from the broker

Tuple Fields of Pubcomp

0: Pid
Unsuback(Pid)

Incoming suback from the broker Incoming unsuback from the broker

Tuple Fields of Unsuback

0: Pid
Abort(EventError)

Tuple Fields of Abort

0: EventError

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.