[−][src]Struct mosquitto_client_wrapper::MosqMessage
A mosquitto message
Implementations
impl MosqMessage
[src]
pub fn topic(&self) -> &str
[src]
the topic of the message. This will panic if the topic isn't valid UTF-8
pub fn payload(&self) -> &[u8]
[src]
the payload as bytes
pub fn text(&self) -> &str
[src]
the payload as text. This will panic if the payload was not valid UTF-8
pub fn qos(&self) -> u32
[src]
the quality-of-service of the message. The desired QoS is specified when we subscribe.
pub 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 Clone for MosqMessage
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MosqMessage
[src]
impl Drop for MosqMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for MosqMessage
[src]
impl !Send for MosqMessage
[src]
impl !Sync for MosqMessage
[src]
impl Unpin for MosqMessage
[src]
impl UnwindSafe for MosqMessage
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,