pub enum MqttConnectionState {
Disconnected,
Connecting,
Connected,
Reconnecting,
Disconnecting,
Failed,
}Expand description
MQTT connection state
Variants§
Implementations§
Source§impl MqttConnectionState
impl MqttConnectionState
pub fn can_connect(&self) -> bool
pub fn is_connected(&self) -> bool
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 UnsafeUnpin 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