pub struct PubRec {
pub packet_identifier: u16,
pub reason_code: PubRecReasonCode,
pub properties: PubRecProperties,
}Expand description
The PubRec (Publish Received) packet is part of the acknowledgment flow for a crate::packets::Publish with QoS 2.
It means that the Publish has been received, the flow will continue with the crate::packets::pubrel::PubRel
packet and then the crate::packets::pubcomp::PubComp packet.
Fields§
§packet_identifier: u16§reason_code: PubRecReasonCode§properties: PubRecPropertiesTrait Implementations§
impl Eq for PubRec
impl StructuralPartialEq for PubRec
Auto Trait Implementations§
impl Freeze for PubRec
impl RefUnwindSafe for PubRec
impl Send for PubRec
impl Sync for PubRec
impl Unpin for PubRec
impl UnwindSafe for PubRec
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