pub struct Message(/* private fields */);Expand description
A message received from the broker. Its contents are wrapped in
an Arc, so this value can be safely cloned with no extra
mallocs.
Implementations§
Source§impl IncomingPublishPacket
impl IncomingPublishPacket
Sourcepub fn info(&self) -> PublishPacketInfo
pub fn info(&self) -> PublishPacketInfo
Returns basic information about this message (flags and packet ID).
Trait Implementations§
Source§impl Clone for IncomingPublishPacket
impl Clone for IncomingPublishPacket
Source§fn clone(&self) -> IncomingPublishPacket
fn clone(&self) -> IncomingPublishPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IncomingPublishPacket
impl RefUnwindSafe for IncomingPublishPacket
impl Send for IncomingPublishPacket
impl Sync for IncomingPublishPacket
impl Unpin for IncomingPublishPacket
impl UnwindSafe for IncomingPublishPacket
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