Enum esp32c2_hal::prelude::nb::Error
source · 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§
source§impl<E> Ord for Error<E>where
E: Ord,
impl<E> Ord for Error<E>where E: Ord,
source§impl<E> PartialEq<Error<E>> for Error<E>where
E: PartialEq<E>,
impl<E> PartialEq<Error<E>> for Error<E>where E: PartialEq<E>,
source§impl<E> PartialOrd<Error<E>> for Error<E>where
E: PartialOrd<E>,
impl<E> PartialOrd<Error<E>> for Error<E>where E: PartialOrd<E>,
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