pub enum MqttConnectionState {
Disconnected,
Connecting,
Connected,
Disconnecting,
}Expand description
Represents the connection state of an MQTT client
Variants§
Disconnected
Client is disconnected from the broker
Connecting
Client is in the process of connecting to the broker
Connected
Client is connected to the broker
Disconnecting
Client is in the process of disconnecting from the broker
Trait Implementations§
Source§impl Clone for MqttConnectionState
impl Clone for MqttConnectionState
Source§fn clone(&self) -> MqttConnectionState
fn clone(&self) -> MqttConnectionState
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 moreSource§impl Debug for MqttConnectionState
impl Debug for MqttConnectionState
Source§impl PartialEq for MqttConnectionState
impl PartialEq for MqttConnectionState
impl Copy for MqttConnectionState
impl Eq for MqttConnectionState
impl StructuralPartialEq for MqttConnectionState
Auto Trait Implementations§
impl Freeze for MqttConnectionState
impl RefUnwindSafe for MqttConnectionState
impl Send for MqttConnectionState
impl Sync for MqttConnectionState
impl Unpin for MqttConnectionState
impl UnwindSafe for MqttConnectionState
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