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 ==
.impl Eq for Unsubscribe
impl StructuralEq for Unsubscribe
impl StructuralPartialEq for Unsubscribe
Auto Trait Implementations§
impl !RefUnwindSafe for Unsubscribe
impl Send for Unsubscribe
impl Sync for Unsubscribe
impl Unpin for Unsubscribe
impl !UnwindSafe for Unsubscribe
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