Struct mosquitto_client::TopicMatcher [−][src]
pub struct TopicMatcher<'a> { pub mid: i32, // some fields omitted }
Matching subscription topics. Returned from Mosquitto::subscribe.
Fields
mid: i32
the subscription id.
Methods
impl<'a> TopicMatcher<'a>
[src]
impl<'a> TopicMatcher<'a>
pub fn matches(&self, msg: &MosqMessage) -> bool
[src]
pub fn matches(&self, msg: &MosqMessage) -> bool
true if a message matches a subscription topic
pub fn receive_many(&self, millis: i32) -> Result<Vec<MosqMessage>>
[src]
pub fn receive_many(&self, millis: i32) -> Result<Vec<MosqMessage>>
receive and return messages matching this topic, until timeout
pub fn receive_one(&self, millis: i32) -> Result<MosqMessage>
[src]
pub fn receive_one(&self, millis: i32) -> Result<MosqMessage>
receive and return exactly one message matching this topic
Auto Trait Implementations
impl<'a> Send for TopicMatcher<'a>
impl<'a> Send for TopicMatcher<'a>
impl<'a> Sync for TopicMatcher<'a>
impl<'a> Sync for TopicMatcher<'a>