[][src]Enum mqtt_v5::topic::TopicFilter

pub enum TopicFilter {
    Concrete {
        filter: String,
        level_count: u32,
    },
    Wildcard {
        filter: String,
        level_count: u32,
    },
    SharedConcrete {
        group_name: String,
        filter: String,
        level_count: u32,
    },
    SharedWildcard {
        group_name: String,
        filter: String,
        level_count: u32,
    },
}

A filter for subscribers to indicate which topics they want to receive messages from. Can contain wildcards.

Variants

Concrete

Fields of Concrete

filter: Stringlevel_count: u32
Wildcard

Fields of Wildcard

filter: Stringlevel_count: u32
SharedConcrete

Fields of SharedConcrete

group_name: Stringfilter: Stringlevel_count: u32
SharedWildcard

Fields of SharedWildcard

group_name: Stringfilter: Stringlevel_count: u32

Methods

impl<'a> TopicFilter[src]

Important traits for TopicLevels<'a>
pub fn levels(&'a self) -> TopicLevels<'a>[src]

Trait Implementations

impl Debug for TopicFilter[src]

impl FromStr for TopicFilter[src]

type Err = TopicParseError

The associated error which can be returned from parsing.

impl PartialEq<TopicFilter> for TopicFilter[src]

impl StructuralPartialEq for TopicFilter[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.