esp_wifi::wifi

Enum InternalWifiError

Source
#[repr(i32)]
pub enum InternalWifiError {
Show 22 variants EspErrNoMem = 257, EspErrInvalidArg = 258, EspErrWifiNotInit = 12_289, EspErrWifiNotStarted = 12_290, EspErrWifiNotStopped = 12_291, EspErrWifiIf = 12_292, EspErrWifiMode = 12_293, EspErrWifiState = 12_294, EspErrWifiConn = 12_295, EspErrWifiNvs = 12_296, EspErrWifiMac = 12_297, EspErrWifiSsid = 12_298, EspErrWifiPassword = 12_299, EspErrWifiTimeout = 12_300, EspErrWifiWakeFail = 12_301, EspErrWifiWouldBlock = 12_302, EspErrWifiNotConnect = 12_303, EspErrWifiPost = 12_306, EspErrWifiInitState = 12_307, EspErrWifiStopState = 12_308, EspErrWifiNotAssoc = 12_309, EspErrWifiTxDisallow = 12_310,
}
Expand description

Error originating from the underlying drivers

Variants§

§

EspErrNoMem = 257

Out of memory

§

EspErrInvalidArg = 258

Invalid argument

§

EspErrWifiNotInit = 12_289

WiFi driver was not installed by esp_wifi_init

§

EspErrWifiNotStarted = 12_290

WiFi driver was not started by esp_wifi_start

§

EspErrWifiNotStopped = 12_291

WiFi driver was not stopped by esp_wifi_stop

§

EspErrWifiIf = 12_292

WiFi interface error

§

EspErrWifiMode = 12_293

WiFi mode error

§

EspErrWifiState = 12_294

WiFi internal state error

§

EspErrWifiConn = 12_295

WiFi internal control block of station or soft-AP error

§

EspErrWifiNvs = 12_296

WiFi internal NVS module error

§

EspErrWifiMac = 12_297

MAC address is invalid

§

EspErrWifiSsid = 12_298

SSID is invalid

§

EspErrWifiPassword = 12_299

Password is invalid

§

EspErrWifiTimeout = 12_300

Timeout error

§

EspErrWifiWakeFail = 12_301

WiFi is in sleep state(RF closed) and wakeup fail

§

EspErrWifiWouldBlock = 12_302

The caller would block

§

EspErrWifiNotConnect = 12_303

Station still in disconnect status

§

EspErrWifiPost = 12_306

Failed to post the event to WiFi task

§

EspErrWifiInitState = 12_307

Invalid WiFi state when init/deinit is called

§

EspErrWifiStopState = 12_308

Returned when WiFi is stopping

§

EspErrWifiNotAssoc = 12_309

The WiFi connection is not associated

§

EspErrWifiTxDisallow = 12_310

The WiFi TX is disallowed

Trait Implementations§

Source§

impl Clone for InternalWifiError

Source§

fn clone(&self) -> InternalWifiError

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InternalWifiError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromPrimitive for InternalWifiError

Source§

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>

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>

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>

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>

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>

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>

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 more
Source§

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>

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>

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>

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>

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 more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl PartialEq for InternalWifiError

Source§

fn eq(&self, other: &InternalWifiError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for InternalWifiError

Source§

impl Eq for InternalWifiError

Source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.