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]
fn matches(&self, msg: &MosqMessage) -> bool
[src]
true if a message matches a subscription topic
fn receive_many(&self, millis: i32) -> Result<Vec<MosqMessage>>
[src]
receive and return messages matching this topic, until timeout
fn receive_one(&self, millis: i32) -> Result<MosqMessage>
[src]
receive and return exactly one message matching this topic