pub struct Unsubscribe { /* private fields */ }Expand description
Unsubscribe message
Implementations§
Source§impl Unsubscribe
impl Unsubscribe
Sourcepub fn new(packet: Unsubscribe, size: u32) -> Self
pub fn new(packet: Unsubscribe, size: u32) -> 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<'_> ⓘ
pub fn iter_mut(&mut self) -> UnsubscribeIter<'_> ⓘ
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
convert packet to a result
Sourcepub fn packet(&self) -> &Unsubscribe
pub fn packet(&self) -> &Unsubscribe
Returns reference to unsubscribe packet
Sourcepub fn packet_size(&self) -> u32
pub fn packet_size(&self) -> u32
Returns size of the packet
Trait Implementations§
Source§impl Debug for Unsubscribe
impl Debug for Unsubscribe
Source§impl<'a> IntoIterator for &'a mut Unsubscribe
impl<'a> IntoIterator for &'a mut Unsubscribe
Source§type Item = UnsubscribeItem<'a>
type Item = UnsubscribeItem<'a>
The type of the elements being iterated over.
Source§type IntoIter = UnsubscribeIter<'a>
type IntoIter = UnsubscribeIter<'a>
Which kind of iterator are we turning this into?