pub struct PubAck {
pub packet_identifier: u16,
pub reason_code: ReasonCode,
pub reason_string: Option<String>,
pub user_properties: Vec<(String, String)>,
}Expand description
A PubAck is the response for a Publish message with AtLeastOnce as
quality of service.
Fields§
§packet_identifier: u16The packet identifier is used to identify the message throughout the communication.
reason_code: ReasonCodeThe reason code for the acknowledgement. Can be any of:
SuccessNoMatchingSubscribersUnspecifiedErrorImplementationSpecificErrorNotAuthorizedTopicNameInvalidPacketIdentifierInUseQuotaExceededPayloadFormatInvalid
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 PubAck
Auto Trait Implementations§
impl Freeze for PubAck
impl RefUnwindSafe for PubAck
impl Send for PubAck
impl Sync for PubAck
impl Unpin for PubAck
impl UnwindSafe for PubAck
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