pub struct IncomingMessage {
pub topic: String,
pub payload: Bytes,
}Expand description
A message received from the broker.
Fields§
§topic: StringThe MQTT topic the message arrived on.
payload: BytesThe raw payload bytes.
Trait Implementations§
Source§impl Clone for IncomingMessage
impl Clone for IncomingMessage
Source§fn clone(&self) -> IncomingMessage
fn clone(&self) -> IncomingMessage
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 IncomingMessage
impl Debug for IncomingMessage
impl Eq for IncomingMessage
Source§impl PartialEq for IncomingMessage
impl PartialEq for IncomingMessage
Source§fn eq(&self, other: &IncomingMessage) -> bool
fn eq(&self, other: &IncomingMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IncomingMessage
Auto Trait Implementations§
impl !Freeze for IncomingMessage
impl RefUnwindSafe for IncomingMessage
impl Send for IncomingMessage
impl Sync for IncomingMessage
impl Unpin for IncomingMessage
impl UnsafeUnpin for IncomingMessage
impl UnwindSafe for IncomingMessage
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