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, 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) -> 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
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
§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?
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more