Struct mqtt::topic_filter::TopicFilter[][src]

pub struct TopicFilter(_);

Topic filter

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106

use mqtt::{TopicFilter, TopicNameRef};

let topic_filter = TopicFilter::new("sport/+/player1").unwrap();
let matcher = topic_filter.get_matcher();
assert!(matcher.is_match(TopicNameRef::new("sport/abc/player1").unwrap()));

Methods

impl TopicFilter
[src]

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

Creates a new topic filter from string without validation

Methods from Deref<Target = TopicFilterRef>

Get a matcher

Trait Implementations

impl Debug for TopicFilter
[src]

Formats the value using the given formatter. Read more

impl Eq for TopicFilter
[src]

impl PartialEq for TopicFilter
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for TopicFilter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for TopicFilter
[src]

Encodes to writer

Length of bytes after encoded

impl Decodable for TopicFilter
[src]

Decodes object with additional data (or hints)

Decodes object from reader

impl Deref for TopicFilter
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl Send for TopicFilter

impl Sync for TopicFilter