Struct OutgoingQos2
pub struct OutgoingQos2<'a> {
pub packet_id: PacketId,
pub phase: Qos2Phase,
pub topic: Option<&'a Topic>,
pub payload: &'a [u8],
pub retain: bool,
pub properties: &'a PublishProperties,
}Expand description
A stored outgoing QoS 2 message, passed to the iteration callback.
Fields§
§packet_id: PacketIdPacket identifier.
phase: Qos2PhaseCurrent phase in the QoS 2 handshake.
topic: Option<&'a Topic>Topic name. None in Qos2Phase::AwaitingPubcomp.
payload: &'a [u8]Message payload. Empty in Qos2Phase::AwaitingPubcomp.
retain: boolRetain flag.
properties: &'a PublishPropertiesOriginal publish properties.
Trait Implementations§
§impl<'a> Clone for OutgoingQos2<'a>
impl<'a> Clone for OutgoingQos2<'a>
§fn clone(&self) -> OutgoingQos2<'a>
fn clone(&self) -> OutgoingQos2<'a>
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 more§impl<'a> Debug for OutgoingQos2<'a>
impl<'a> Debug for OutgoingQos2<'a>
§impl<'a> PartialEq for OutgoingQos2<'a>
impl<'a> PartialEq for OutgoingQos2<'a>
impl<'a> Copy for OutgoingQos2<'a>
impl<'a> Eq for OutgoingQos2<'a>
impl<'a> StructuralPartialEq for OutgoingQos2<'a>
Auto Trait Implementations§
impl<'a> Freeze for OutgoingQos2<'a>
impl<'a> RefUnwindSafe for OutgoingQos2<'a>
impl<'a> Send for OutgoingQos2<'a>
impl<'a> Sync for OutgoingQos2<'a>
impl<'a> Unpin for OutgoingQos2<'a>
impl<'a> UnwindSafe for OutgoingQos2<'a>
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