Struct mosquitto_client::MosqMessage[][src]

pub struct MosqMessage { /* fields omitted */ }

A mosquitto message

Methods

impl MosqMessage
[src]

the topic of the message. This will panic if the topic isn't valid UTF-8

the payload as bytes

the payload as text. This will panic if the payload was not valid UTF-8

the quality-of-service of the message. The desired QoS is specified when we subscribe.

was the message retained by the broker? True if we received this as a retained message. Subsequent messages marked as retained will not set this.

Trait Implementations

impl Debug for MosqMessage
[src]

Formats the value using the given formatter. Read more

impl Clone for MosqMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for MosqMessage
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for MosqMessage

impl !Sync for MosqMessage