pub struct MqttClient { /* private fields */ }
Implementations§
Source§impl MqttClient
impl MqttClient
pub fn set_on_message_callback<F>(&self, callback: F)
pub fn set_on_connected_callback<F>(&self, callback: F)
Sourcepub fn publish_raw(&self, message: Message) -> Result<()>
pub fn publish_raw(&self, message: Message) -> Result<()>
Publish MQTT message
Sourcepub fn tx_pending(&self) -> usize
pub fn tx_pending(&self) -> usize
How many messages are waiting to be send
Trait Implementations§
Source§impl Clone for MqttClient
impl Clone for MqttClient
Source§fn clone(&self) -> MqttClient
fn clone(&self) -> MqttClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MqttClient
impl !RefUnwindSafe for MqttClient
impl Send for MqttClient
impl Sync for MqttClient
impl Unpin for MqttClient
impl !UnwindSafe for MqttClient
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