pub struct QueuedMessage {
pub topic: String,
pub payload: Vec<u8>,
pub qos: QoS,
pub retain: bool,
pub packet_id: Option<u16>,
}Fields§
§topic: String§payload: Vec<u8>§qos: QoS§retain: bool§packet_id: Option<u16>Implementations§
Source§impl QueuedMessage
impl QueuedMessage
pub fn to_expiring(self, limits: &LimitsManager) -> ExpiringMessage
Trait Implementations§
Source§impl Clone for QueuedMessage
impl Clone for QueuedMessage
Source§fn clone(&self) -> QueuedMessage
fn clone(&self) -> QueuedMessage
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 QueuedMessage
impl RefUnwindSafe for QueuedMessage
impl Send for QueuedMessage
impl Sync for QueuedMessage
impl Unpin for QueuedMessage
impl UnwindSafe for QueuedMessage
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