pub struct Subscribe { /* private fields */ }Expand description
Subscribe message
Implementations§
Source§impl Subscribe
impl Subscribe
Sourcepub fn new(packet: Subscribe, size: u32) -> Self
pub fn new(packet: Subscribe, size: u32) -> Self
Create a new Subscribe control message from a Subscribe
packet
Sourcepub fn iter_mut(&mut self) -> SubscribeIter<'_> ⓘ
pub fn iter_mut(&mut self) -> SubscribeIter<'_> ⓘ
returns iterator over subscription topics
Sourcepub fn ack_reason(self, reason: ByteString) -> Self
pub fn ack_reason(self, reason: ByteString) -> Self
Reason string for ack packet
Sourcepub fn ack_properties<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut UserProperties),
pub fn ack_properties<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut UserProperties),
Properties for ack packet
Sourcepub fn ack(self) -> ControlAck
pub fn ack(self) -> ControlAck
Ack Subscribe packet
Sourcepub fn packet_size(&self) -> u32
pub fn packet_size(&self) -> u32
Returns size of the packet
Trait Implementations§
Source§impl<'a> IntoIterator for &'a mut Subscribe
impl<'a> IntoIterator for &'a mut Subscribe
Source§type Item = Subscription<'a>
type Item = Subscription<'a>
The type of the elements being iterated over.
Source§type IntoIter = SubscribeIter<'a>
type IntoIter = SubscribeIter<'a>
Which kind of iterator are we turning this into?