Enum esp32c6_hal::prelude::nb::Error
pub enum Error<E> {
Other(E),
WouldBlock,
}
Expand description
A non-blocking error
The main use of this enum is to add a WouldBlock
variant to an existing
error enum.
Variants§
Implementations§
Trait Implementations§
§impl<E> Ord for Error<E>where
E: Ord,
impl<E> Ord for Error<E>where E: Ord,
§impl<E> PartialOrd<Error<E>> for Error<E>where
E: PartialOrd<E>,
impl<E> PartialOrd<Error<E>> for Error<E>where E: PartialOrd<E>,
§fn partial_cmp(&self, other: &Error<E>) -> Option<Ordering>
fn partial_cmp(&self, other: &Error<E>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more