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

pub struct TopicFilterRef(_);

Reference to a TopicFilter

Methods

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

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

Get a matcher

Trait Implementations

impl PartialEq<TopicFilterRef> for TopicFilterRef[src]

impl Ord for TopicFilterRef[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for TopicFilterRef[src]

impl PartialOrd<TopicFilterRef> for TopicFilterRef[src]

impl Debug for TopicFilterRef[src]

impl Deref for TopicFilterRef[src]

type Target = str

The resulting type after dereferencing.

impl Hash for TopicFilterRef[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

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

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

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