pub struct MqttPublisher { /* private fields */ }Expand description
Publishes messages to MQTT topics through the shared connection.
The publish is queued into the client session: for QoS 1/2 the session’s state machine
retransmits until the broker acknowledges (surviving reconnects), so Ok means “owned by
the session”, not “broker confirmed”. Buildable before connect and usable until
shutdown; afterwards every publish reports MqttError::NotConnected.
Trait Implementations§
Source§impl Clone for MqttPublisher
impl Clone for MqttPublisher
Source§fn clone(&self) -> MqttPublisher
fn clone(&self) -> MqttPublisher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MqttPublisher
impl Debug for MqttPublisher
Auto Trait Implementations§
impl !RefUnwindSafe for MqttPublisher
impl !UnwindSafe for MqttPublisher
impl Freeze for MqttPublisher
impl Send for MqttPublisher
impl Sync for MqttPublisher
impl Unpin for MqttPublisher
impl UnsafeUnpin for MqttPublisher
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