[−][src]Struct mqtt::topic_filter::TopicFilterRef
Reference to a TopicFilter
Methods
impl TopicFilterRef
[src]
pub fn new<S: AsRef<str> + ?Sized>(
topic: &S
) -> Result<&TopicFilterRef, TopicFilterError>
[src]
topic: &S
) -> Result<&TopicFilterRef, TopicFilterError>
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]
topic: &S
) -> &TopicFilterRef
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]
fn eq(&self, other: &TopicFilterRef) -> bool
[src]
fn ne(&self, other: &TopicFilterRef) -> bool
[src]
impl Ord for TopicFilterRef
[src]
fn cmp(&self, other: &TopicFilterRef) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.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