Struct ntex_mqtt::v5::control::Unsubscribe
source · pub struct Unsubscribe { /* private fields */ }
Expand description
Unsubscribe message
Implementations§
source§impl 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<'_> ⓘ
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) -> 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§
source§impl Debug for Unsubscribe
impl Debug for Unsubscribe
source§impl<'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?