Struct ntex_mqtt::v5::codec::Unsubscribe
source · pub struct Unsubscribe {
pub packet_id: NonZeroU16,
pub user_properties: UserProperties,
pub topic_filters: Vec<ByteString>,
}
Expand description
Represents UNSUBSCRIBE packet
Fields§
§packet_id: NonZeroU16
Packet Identifier
user_properties: UserProperties
§topic_filters: Vec<ByteString>
the list of Topic Filters that the Client wishes to unsubscribe from.
Trait Implementations§
source§impl Clone for Unsubscribe
impl Clone for Unsubscribe
source§fn clone(&self) -> Unsubscribe
fn clone(&self) -> Unsubscribe
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 Unsubscribe
impl Debug for Unsubscribe
source§impl From<Unsubscribe> for Packet
impl From<Unsubscribe> for Packet
source§fn from(pkt: Unsubscribe) -> Self
fn from(pkt: Unsubscribe) -> Self
Converts to this type from the input type.
source§impl PartialEq<Unsubscribe> for Unsubscribe
impl PartialEq<Unsubscribe> for Unsubscribe
source§fn eq(&self, other: &Unsubscribe) -> bool
fn eq(&self, other: &Unsubscribe) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.