pub struct Subscribe {
pub packet_identifier: u16,
pub subscription_identifier: Option<u32>,
pub user_properties: Vec<(String, String)>,
pub subscriptions: Vec<(Topic, SubscriptionOptions)>,
}Expand description
The subscribe packet is a request from the client to listen to one or more topics.
Fields§
§packet_identifier: u16The packet identifier is used to identify the message throughout the communication.
subscription_identifier: Option<u32>Optional identifier used to represent the subscription in nextcoming mmessages.
user_properties: Vec<(String, String)>General purpose user properies
subscriptions: Vec<(Topic, SubscriptionOptions)>The list of topics to subscribe to with options. Each topics can use wildcards.
Trait Implementations§
impl StructuralPartialEq for Subscribe
Auto Trait Implementations§
impl Freeze for Subscribe
impl RefUnwindSafe for Subscribe
impl Send for Subscribe
impl Sync for Subscribe
impl Unpin for Subscribe
impl UnwindSafe for Subscribe
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