[][src]Struct mosquitto_client_wrapper::TopicMatcher

pub struct TopicMatcher<'a> {
    pub mid: i32,
    // some fields omitted
}

Matching subscription topics. Returned from Mosquitto::subscribe.

Fields

mid: i32

the subscription id.

Implementations

impl<'a> TopicMatcher<'a>[src]

pub fn matches(&self, msg: &MosqMessage) -> bool[src]

true if a message matches a subscription topic

pub fn receive_many(&self, millis: i32) -> Result<Vec<MosqMessage>>[src]

receive and return messages matching this topic, until timeout

pub fn receive_one(&self, millis: i32) -> Result<MosqMessage>[src]

receive and return exactly one message matching this topic

Auto Trait Implementations

impl<'a> RefUnwindSafe for TopicMatcher<'a>[src]

impl<'a> Send for TopicMatcher<'a>[src]

impl<'a> Sync for TopicMatcher<'a>[src]

impl<'a> Unpin for TopicMatcher<'a>[src]

impl<'a> UnwindSafe for TopicMatcher<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.