pub struct Subscribe { /* private fields */ }
Expand description
Subscribe message
Implementations
sourceimpl Subscribe
impl Subscribe
sourcepub fn new(packet: Subscribe) -> Self
pub fn new(packet: Subscribe) -> 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) -> ControlResult
pub fn ack(self) -> ControlResult
Ack Subscribe packet
Trait Implementations
sourceimpl<'a> IntoIterator for &'a mut Subscribe
impl<'a> IntoIterator for &'a mut Subscribe
type Item = Subscription<'a>
type Item = Subscription<'a>
The type of the elements being iterated over.
type IntoIter = SubscribeIter<'a>
type IntoIter = SubscribeIter<'a>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> SubscribeIter<'a> ⓘ
fn into_iter(self) -> SubscribeIter<'a> ⓘ
Creates an iterator from a value. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Subscribe
impl Send for Subscribe
impl Sync for Subscribe
impl Unpin for Subscribe
impl !UnwindSafe for Subscribe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more