#[non_exhaustive]#[repr(i32)]pub enum InternalWifiError {
Show 22 variants
NoMem = 257,
InvalidArg = 258,
NotInit = 12_289,
NotStarted = 12_290,
NotStopped = 12_291,
Interface = 12_292,
Mode = 12_293,
State = 12_294,
Conn = 12_295,
Nvs = 12_296,
InvalidMac = 12_297,
InvalidSsid = 12_298,
InvalidPassword = 12_299,
Timeout = 12_300,
WakeFail = 12_301,
WouldBlock = 12_302,
NotConnected = 12_303,
PostFail = 12_306,
InvalidInitState = 12_307,
StopState = 12_308,
NotAssociated = 12_309,
TxDisallowed = 12_310,
}Available on crate feature
wifi only.Expand description
Error originating from the underlying drivers
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoMem = 257
Out of memory
InvalidArg = 258
Invalid argument
NotInit = 12_289
Wi-Fi driver was not installed by esp_wifi_init
NotStarted = 12_290
Wi-Fi driver was not started by esp_wifi_start
NotStopped = 12_291
Wi-Fi driver was not stopped by esp_wifi_stop
Interface = 12_292
Wi-Fi interface error
Mode = 12_293
Wi-Fi mode error
State = 12_294
Wi-Fi internal state error
Conn = 12_295
Wi-Fi internal control block of station or soft-AP error
Nvs = 12_296
Wi-Fi internal NVS module error
InvalidMac = 12_297
MAC address is invalid
InvalidSsid = 12_298
SSID is invalid
InvalidPassword = 12_299
Password is invalid
Timeout = 12_300
Timeout error
WakeFail = 12_301
Wi-Fi is in sleep state (RF closed) and wakeup failed
WouldBlock = 12_302
The caller would block
NotConnected = 12_303
Station still in disconnect status
PostFail = 12_306
Failed to post the event to Wi-Fi task
InvalidInitState = 12_307
Invalid Wi-Fi state when init/deinit is called
StopState = 12_308
Returned when Wi-Fi is stopping
NotAssociated = 12_309
The Wi-Fi connection is not associated
TxDisallowed = 12_310
The Wi-Fi TX is disallowed
Trait Implementations§
Source§impl Clone for InternalWifiError
impl Clone for InternalWifiError
Source§fn clone(&self) -> InternalWifiError
fn clone(&self) -> InternalWifiError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalWifiError
impl Debug for InternalWifiError
Source§impl Format for InternalWifiError
impl Format for InternalWifiError
Source§impl FromPrimitive for InternalWifiError
impl FromPrimitive for InternalWifiError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for InternalWifiError
impl PartialEq for InternalWifiError
impl Copy for InternalWifiError
impl Eq for InternalWifiError
impl StructuralPartialEq for InternalWifiError
Auto Trait Implementations§
impl Freeze for InternalWifiError
impl RefUnwindSafe for InternalWifiError
impl Send for InternalWifiError
impl Sync for InternalWifiError
impl Unpin for InternalWifiError
impl UnwindSafe for InternalWifiError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)