[−][src]Struct mosquitto_client_wrapper::TopicMatcher
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,