Struct ntex_mqtt::v5::codec::UnsubscribeAck
source · pub struct UnsubscribeAck {
pub packet_id: NonZeroU16,
pub properties: UserProperties,
pub reason_string: Option<ByteString>,
pub status: Vec<UnsubscribeAckReason>,
}
Expand description
Represents UNSUBACK packet
Fields§
§packet_id: NonZeroU16
Packet Identifier
properties: UserProperties
§reason_string: Option<ByteString>
§status: Vec<UnsubscribeAckReason>
Trait Implementations§
source§impl Clone for UnsubscribeAck
impl Clone for UnsubscribeAck
source§fn clone(&self) -> UnsubscribeAck
fn clone(&self) -> UnsubscribeAck
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 UnsubscribeAck
impl Debug for UnsubscribeAck
source§impl From<UnsubscribeAck> for Packet
impl From<UnsubscribeAck> for Packet
source§fn from(pkt: UnsubscribeAck) -> Self
fn from(pkt: UnsubscribeAck) -> Self
Converts to this type from the input type.
source§impl PartialEq<UnsubscribeAck> for UnsubscribeAck
impl PartialEq<UnsubscribeAck> for UnsubscribeAck
source§fn eq(&self, other: &UnsubscribeAck) -> bool
fn eq(&self, other: &UnsubscribeAck) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.