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

pub struct Unsubscribe { /* fields omitted */ }
Expand description

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 string 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

pub fn packet(&self) -> &Unsubscribe[src]

Returns reference to unsubscribe packet

Trait Implementations

impl Debug for Unsubscribe[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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?

fn into_iter(self) -> UnsubscribeIter<'a>

Notable traits for UnsubscribeIter<'a>

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

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.