pub struct MqttQueue { /* private fields */ }
Expand description
Manages a MQTT queue.
Implementations§
Source§impl MqttQueue
impl MqttQueue
Sourcepub fn new(
opts: MqttQueueOptions,
conn: &MqttConnection,
) -> Result<MqttQueue, String>
pub fn new( opts: MqttQueueOptions, conn: &MqttConnection, ) -> Result<MqttQueue, String>
Create a queue instance.
Trait Implementations§
Source§impl GmqQueue for MqttQueue
impl GmqQueue for MqttQueue
Source§fn set_handler(&mut self, handler: Arc<dyn EventHandler>)
fn set_handler(&mut self, handler: Arc<dyn EventHandler>)
To set the queue event handler.
Source§fn clear_handler(&mut self)
fn clear_handler(&mut self)
To remove the queue event handler.
Source§fn set_msg_handler(&mut self, handler: Arc<dyn MessageHandler>)
fn set_msg_handler(&mut self, handler: Arc<dyn MessageHandler>)
To set the queue message handler.
Auto Trait Implementations§
impl Freeze for MqttQueue
impl RefUnwindSafe for MqttQueue
impl Send for MqttQueue
impl Sync for MqttQueue
impl Unpin for MqttQueue
impl UnwindSafe for MqttQueue
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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