Enum TopicFilter
enum TopicFilter {
One {
topic: Box<str>,
qos: i32,
opts: SubscribeOptions,
},
Many {
topic: Box<[Box<str>]>,
qos: Box<[i32]>,
opts: Box<[SubscribeOptions]>,
},
}Variants§
Implementations§
§impl TopicFilter
impl TopicFilter
fn new_single(topic: Box<str>, qos: i32, opts: SubscribeOptions) -> Self
fn new_multi( topic: Box<[Box<str>]>, qos: Box<[i32]>, opts: Box<[SubscribeOptions]>, ) -> Result<Self>
async fn impl_subscribe( &self, paho_client: &AsyncClient, props: Properties, timeout: Duration, ) -> Result<ServerResponse, Error>
fn matches(&self, topic: &str) -> bool
Auto Trait Implementations§
impl Freeze for TopicFilter
impl RefUnwindSafe for TopicFilter
impl Send for TopicFilter
impl Sync for TopicFilter
impl Unpin for TopicFilter
impl UnwindSafe for TopicFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more