pub struct OutboundMessage {
pub topic: String,
pub qos: Qos,
pub retain: bool,
pub payload: Bytes,
}Expand description
A message to publish.
Fields§
§topic: StringThe MQTT topic.
qos: QosThe QoS level.
retain: boolThe retain flag.
payload: BytesThe raw payload bytes.
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Source§fn clone(&self) -> OutboundMessage
fn clone(&self) -> OutboundMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundMessage
impl Debug for OutboundMessage
impl Eq for OutboundMessage
Source§impl PartialEq for OutboundMessage
impl PartialEq for OutboundMessage
Source§fn eq(&self, other: &OutboundMessage) -> bool
fn eq(&self, other: &OutboundMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutboundMessage
Auto Trait Implementations§
impl !Freeze for OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnsafeUnpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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