pub struct PubComp {
pub packet_identifier: u16,
pub reason_code: ReasonCode,
pub reason_string: Option<String>,
pub user_properties: Vec<(String, String)>,
}
Expand description
The PubComp
packet is sent during an ExactlyOnce
quality of service
publish.
Fields§
§packet_identifier: u16
The packet identifier is used to identify the message throughout the communication.
reason_code: ReasonCode
The reason code for the acknowledgement. Can be any of:
Success
NoMatchingSubscribers
UnspecifiedError
ImplementationSpecificError
NotAuthorized
TopicNameInvalid
PacketIdentifierInUse
QuotaExceeded
PayloadFormatInvalid
reason_string: Option<String>
If available, the reason string describing the acknowledgement.
user_properties: Vec<(String, String)>
General purpose user properties
Trait Implementations§
impl StructuralPartialEq for PubComp
Auto Trait Implementations§
impl Freeze for PubComp
impl RefUnwindSafe for PubComp
impl Send for PubComp
impl Sync for PubComp
impl Unpin for PubComp
impl UnwindSafe for PubComp
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