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 for Unsubscribe
impl PartialEq for Unsubscribe
impl Eq for Unsubscribe
impl StructuralPartialEq for Unsubscribe
Auto Trait Implementations§
impl Freeze for Unsubscribe
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)