#[non_exhaustive]pub enum WifiError {
Disconnected(DisconnectedStationInfo),
Unsupported,
InvalidArguments,
Failed,
OutOfMemory,
InvalidSsid,
InvalidPassword,
NotConnected,
}Available on crate feature
wifi only.Expand description
Common errors.
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.
Disconnected(DisconnectedStationInfo)
The device disconnected from the network or failed to connect to it.
Unsupported
Unsupported operation or mode.
InvalidArguments
Passed arguments are invalid.
Failed
Generic failure - not further specified.
OutOfMemory
Out of memory.
InvalidSsid
SSID is invalid.
InvalidPassword
Password is invalid.
NotConnected
Station still in disconnect status.
Trait Implementations§
Source§impl Error for WifiError
impl Error for WifiError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<WifiError> for EspNowError
Available on crate features esp-now and unstable only.
impl From<WifiError> for EspNowError
Available on crate features
esp-now and unstable only.impl Copy for WifiError
impl Eq for WifiError
impl StructuralPartialEq for WifiError
Auto Trait Implementations§
impl Freeze for WifiError
impl RefUnwindSafe for WifiError
impl Send for WifiError
impl Sync for WifiError
impl Unpin for WifiError
impl UnwindSafe for WifiError
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)