#[repr(u32)]pub enum Error {
NotInitialized = 12_389,
InvalidArgument = 12_390,
OutOfMemory = 12_391,
PeerListFull = 12_392,
NotFound = 12_393,
Internal = 12_394,
PeerExists = 12_395,
InterfaceMismatch = 12_396,
Other(u32),
}Available on crate feature
unstable only.Expand description
Internal errors that can occur with ESP-NOW.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Variants§
NotInitialized = 12_389
ESP-NOW is not initialized.
InvalidArgument = 12_390
Invalid argument.
OutOfMemory = 12_391
Indicates that there was insufficient memory to complete the operation.
PeerListFull = 12_392
ESP-NOW peer list is full.
NotFound = 12_393
ESP-NOW peer is not found.
Internal = 12_394
Internal error.
PeerExists = 12_395
ESP-NOW peer already exists.
InterfaceMismatch = 12_396
The Wi-Fi interface used for ESP-NOW doesn’t match the expected one for the peer.
Other(u32)
Represents any other error not covered by the above variants, with an associated error code.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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