Struct MqttHandle
pub struct MqttHandle {
pub(crate) shared: Arc<Inner>,
}Fields§
Implementations§
§impl MqttHandle
impl MqttHandle
pub fn client_id(&self) -> Arc<str>
pub fn is_connected(&self) -> bool
pub fn watch_state(&self) -> ConnectionStateWatch
pub async fn health(&self) -> Report
pub async fn set_desired_state(&self, state: ConnectionState)
pub async fn subscribe(&self, topic: &str, qos: i32) -> Subscription
pub fn queue_publish(&self, msg: Message) -> Result<DeliveryToken, Error>
pub fn has_persistence(&self) -> bool
pub fn has_persistence(&self) -> bool
Returns true if persistence is enabled.
Auto Trait Implementations§
impl Freeze for MqttHandle
impl !RefUnwindSafe for MqttHandle
impl Send for MqttHandle
impl Sync for MqttHandle
impl Unpin for MqttHandle
impl !UnwindSafe for MqttHandle
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