Struct mosquitto_client::MosqMessage [] [src]

pub struct MosqMessage { /* fields omitted */ }

A mosquitto message

Methods

impl MosqMessage
[src]

[src]

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

[src]

the payload as bytes

[src]

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

[src]

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

[src]

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]

[src]

Formats the value using the given formatter.

impl Clone for MosqMessage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for MosqMessage
[src]

[src]

Executes the destructor for this type. Read more