pub struct Subscribe {
pub packet_id: NonZeroU16,
pub id: Option<NonZeroU32>,
pub user_properties: UserProperties,
pub topic_filters: Vec<(ByteString, SubscriptionOptions)>,
}
Expand description
Represents SUBSCRIBE packet
Fields§
§packet_id: NonZeroU16
Packet Identifier
id: Option<NonZeroU32>
Subscription Identifier
user_properties: UserProperties
§topic_filters: Vec<(ByteString, SubscriptionOptions)>
the list of Topic Filters and QoS to which the Client wants to subscribe.
Trait Implementations§
impl Eq for Subscribe
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
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
)