#[repr(u8)]pub enum ConnectionStatus {
NoEsp32 = 255,
NoActiveSsid = 1,
ScanCompleted = 2,
Connected = 3,
Failed = 4,
Lost = 5,
Disconnected = 6,
ApListening = 7,
ApConnected = 8,
ApFailed = 9,
Invalid = 10,
}
Expand description
An enumerated type that represents the current WiFi network connection status.
Variants§
NoEsp32 = 255
No device is connected to hardware
NoActiveSsid = 1
No SSID is available
ScanCompleted = 2
WiFi network scan has finished
Connected = 3
Device is connected to WiFi network
Failed = 4
Device failed to connect to WiFi network
Lost = 5
Device lost connection to WiFi network
Disconnected = 6
Device disconnected from WiFi network
ApListening = 7
Device is listening for connections in Access Point mode
ApConnected = 8
Device is connected in Access Point mode
ApFailed = 9
Device failed to make connection in Access Point mode
Invalid = 10
Unexpected value returned from device, reset may be required
Trait Implementations§
Source§impl Debug for ConnectionStatus
impl Debug for ConnectionStatus
Source§impl Format for ConnectionStatus
impl Format for ConnectionStatus
Source§impl From<u8> for ConnectionStatus
impl From<u8> for ConnectionStatus
Source§fn from(status: u8) -> ConnectionStatus
fn from(status: u8) -> ConnectionStatus
Converts to this type from the input type.
Source§impl PartialEq for ConnectionStatus
impl PartialEq for ConnectionStatus
Source§impl PartialOrd for ConnectionStatus
impl PartialOrd for ConnectionStatus
impl Eq for ConnectionStatus
impl StructuralPartialEq for ConnectionStatus
Auto Trait Implementations§
impl Freeze for ConnectionStatus
impl RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl UnwindSafe for ConnectionStatus
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