[][src]Struct ntex_mqtt::v5::control::Unsubscribe

pub struct Unsubscribe { /* fields omitted */ }

Unsubscribe message

Implementations

impl Unsubscribe[src]

pub fn properties(&self) -> &UserProperties[src]

Unsubscribe packet user properties

pub fn iter(&self) -> impl Iterator<Item = &ByteString>[src]

returns iterator over unsubscribe topics

pub fn iter_mut(&mut self) -> UnsubscribeIter<'_>

Notable traits for UnsubscribeIter<'a>

impl<'a> Iterator for UnsubscribeIter<'a> type Item = UnsubscribeItem<'a>;
[src]

returns iterator over subscription topics

pub fn ack_reason(self, reason: ByteString) -> Self[src]

Reason stream for ack packet

pub fn ack_properties<F>(self, f: F) -> Self where
    F: FnOnce(&mut UserProperties), 
[src]

Properties for ack packet

pub fn ack(self) -> ControlResult[src]

convert packet to a result

Trait Implementations

impl Debug for Unsubscribe[src]

impl<'a> IntoIterator for &'a mut Unsubscribe[src]

type Item = UnsubscribeItem<'a>

The type of the elements being iterated over.

type IntoIter = UnsubscribeIter<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,