Struct mosquitto_rs::Message
source · pub struct Message {
pub topic: String,
pub payload: Vec<u8>,
pub qos: QoS,
pub retain: bool,
pub mid: MessageId,
}
Expand description
Represents a received message that matches one or more of the subscription topic patterns on a client.
Fields§
§topic: String
The destination topic
payload: Vec<u8>
The data payload bytes
qos: QoS
The qos level at which the message was sent
retain: bool
Whether the message is a retained message. The broker will preserve the last retained message and send it to a subscriber at subscribe time.
mid: MessageId
The message id
Trait Implementations§
source§impl PartialEq for Message
impl PartialEq for Message
impl Eq for Message
impl StructuralEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more