Struct mosquitto_client::MosqMessage
[−]
[src]
pub struct MosqMessage { /* fields omitted */ }
A mosquitto message
Methods
impl MosqMessage
[src]
fn topic(&self) -> &str
[src]
the topic of the message. This will panic if the topic isn't valid UTF-8
fn payload(&self) -> &[u8]
[src]
the payload as bytes
fn text(&self) -> &str
[src]
the payload as text. This will panic if the payload was not valid UTF-8
fn qos(&self) -> u32
[src]
the quality-of-service of the message. The desired QoS is specified when we subscribe.
fn retained(&self) -> bool
[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]
impl Clone for MosqMessage
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more