Struct sage_mqtt::Subscribe [−][src]
pub struct Subscribe {
pub packet_identifier: u16,
pub subscription_identifier: Option<u32>,
pub user_properties: Vec<(String, String)>,
pub subscriptions: Vec<(String, SubscriptionOptions)>,
}
Expand description
The subscribe packet is a request from the client to listen to one or more topics.
Fields
packet_identifier: u16
The 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<(String, SubscriptionOptions)>
The list of topics to subscribe to with options. Each topics can use wildcards.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Subscribe
impl UnwindSafe for Subscribe
Blanket Implementations
Mutably borrows from an owned value. Read more