[−][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
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]
impl Eq for TopicFilterRef
[src]
impl Hash for TopicFilterRef
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,