pub struct UnSubscribe {
pub packet_identifier: u16,
pub user_properties: Vec<(String, String)>,
pub subscriptions: Vec<String>,
}
Expand description
An Unsubscribe
packet is sent from the client to unsubsribe to a topic.
Fields§
§packet_identifier: u16
The packet identifier is used to identify the message throughout the communication.
user_properties: Vec<(String, String)>
General purpose user-properties
subscriptions: Vec<String>
The list of topics to unsubsribe to. They can contains wildcards.
Trait Implementations§
Source§impl Clone for UnSubscribe
impl Clone for UnSubscribe
Source§fn clone(&self) -> UnSubscribe
fn clone(&self) -> UnSubscribe
Returns a duplicate 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 Default for UnSubscribe
impl Default for UnSubscribe
Source§impl From<UnSubscribe> for Packet
impl From<UnSubscribe> for Packet
Source§fn from(control: UnSubscribe) -> Self
fn from(control: UnSubscribe) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnSubscribe
impl PartialEq 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