Struct ntex_mqtt::v5::codec::PublishAck
source · pub struct PublishAck {
pub packet_id: NonZeroU16,
pub reason_code: PublishAckReason,
pub properties: UserProperties,
pub reason_string: Option<ByteString>,
}
Expand description
PUBACK/PUBREC message content
Fields§
§packet_id: NonZeroU16
Packet Identifier
reason_code: PublishAckReason
§properties: UserProperties
§reason_string: Option<ByteString>
Trait Implementations§
source§impl Clone for PublishAck
impl Clone for PublishAck
source§fn clone(&self) -> PublishAck
fn clone(&self) -> PublishAck
Returns a copy 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 moresource§impl Debug for PublishAck
impl Debug for PublishAck
source§impl Default for PublishAck
impl Default for PublishAck
source§impl From<PublishAck> for Packet
impl From<PublishAck> for Packet
source§fn from(pkt: PublishAck) -> Self
fn from(pkt: PublishAck) -> Self
Converts to this type from the input type.
source§impl PartialEq<PublishAck> for PublishAck
impl PartialEq<PublishAck> for PublishAck
source§fn eq(&self, other: &PublishAck) -> bool
fn eq(&self, other: &PublishAck) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PublishAck
impl StructuralEq for PublishAck
impl StructuralPartialEq for PublishAck
Auto Trait Implementations§
impl !RefUnwindSafe for PublishAck
impl Send for PublishAck
impl Sync for PublishAck
impl Unpin for PublishAck
impl !UnwindSafe for PublishAck
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