[][src]Struct mqtt::topic_filter::TopicFilterRef

pub struct TopicFilterRef(_);

Reference to a TopicFilter

Implementations

impl TopicFilterRef[src]

pub fn new<S: AsRef<str> + ?Sized>(
    topic: &S
) -> Result<&TopicFilterRef, TopicFilterError>
[src]

Creates a new topic filter from string Return error if it is not a valid topic filter

pub unsafe fn new_unchecked<S: AsRef<str> + ?Sized>(
    topic: &S
) -> &TopicFilterRef
[src]

Creates a new topic filter from string without validation

Safety

Topic filters' syntax is defined in MQTT specification. Creating a filter from raw string may cause errors

pub fn get_matcher(&self) -> TopicFilterMatcher<'_>[src]

Get a matcher

Trait Implementations

impl Debug for TopicFilterRef[src]

impl Deref for TopicFilterRef[src]

type Target = str

The resulting type after dereferencing.

impl Eq for TopicFilterRef[src]

impl Hash for TopicFilterRef[src]

impl Ord for TopicFilterRef[src]

impl PartialEq<TopicFilterRef> for TopicFilterRef[src]

impl PartialOrd<TopicFilterRef> for TopicFilterRef[src]

impl StructuralEq for TopicFilterRef[src]

impl StructuralPartialEq for TopicFilterRef[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]