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