pub struct Unsubscribe { /* private fields */ }
Expand description
Unsubscribe message
Implementations
sourceimpl Unsubscribe
impl Unsubscribe
sourcepub fn new(packet: Unsubscribe) -> Self
pub fn new(packet: Unsubscribe) -> Self
Create a new Unsubscribe
control message from an Unsubscribe
packet
sourcepub fn properties(&self) -> &UserProperties
pub fn properties(&self) -> &UserProperties
Unsubscribe packet user properties
sourcepub fn iter(&self) -> impl Iterator<Item = &ByteString>
pub fn iter(&self) -> impl Iterator<Item = &ByteString>
returns iterator over unsubscribe topics
sourcepub fn iter_mut(&mut self) -> UnsubscribeIter<'_>ⓘNotable traits for UnsubscribeIter<'a>impl<'a> Iterator for UnsubscribeIter<'a> type Item = UnsubscribeItem<'a>;
pub fn iter_mut(&mut self) -> UnsubscribeIter<'_>ⓘNotable traits for UnsubscribeIter<'a>impl<'a> Iterator for UnsubscribeIter<'a> type Item = UnsubscribeItem<'a>;
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) -> Self where
F: FnOnce(&mut UserProperties),
pub fn ack_properties<F>(self, f: F) -> Self where
F: FnOnce(&mut UserProperties),
Properties for ack packet
sourcepub fn ack(self) -> ControlResult
pub fn ack(self) -> ControlResult
convert packet to a result
sourcepub fn packet(&self) -> &Unsubscribe
pub fn packet(&self) -> &Unsubscribe
Returns reference to unsubscribe packet
Trait Implementations
sourceimpl Debug for Unsubscribe
impl Debug for Unsubscribe
sourceimpl<'a> IntoIterator for &'a mut Unsubscribe
impl<'a> IntoIterator for &'a mut Unsubscribe
type Item = UnsubscribeItem<'a>
type Item = UnsubscribeItem<'a>
The type of the elements being iterated over.
type IntoIter = UnsubscribeIter<'a>
type IntoIter = UnsubscribeIter<'a>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> UnsubscribeIter<'a>ⓘNotable traits for UnsubscribeIter<'a>impl<'a> Iterator for UnsubscribeIter<'a> type Item = UnsubscribeItem<'a>;
fn into_iter(self) -> UnsubscribeIter<'a>ⓘNotable traits for UnsubscribeIter<'a>impl<'a> Iterator for UnsubscribeIter<'a> type Item = UnsubscribeItem<'a>;
Creates an iterator from a value. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Unsubscribe
impl Send for Unsubscribe
impl Sync for Unsubscribe
impl Unpin for Unsubscribe
impl !UnwindSafe for Unsubscribe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more