pub enum Error {
Bus,
Protocol(ProtocolError),
Network(NetworkError),
}
Expand description
Highest level error types for this crate.
Variants§
Bus
SPI/I2C related communications error with the ESP32 WiFi target
Protocol(ProtocolError)
Protocol error in communicating with the ESP32 WiFi target
Network(NetworkError)
Network related error
Trait Implementations§
Source§impl From<NetworkError> for Error
impl From<NetworkError> for Error
Source§fn from(err: NetworkError) -> Self
fn from(err: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for Error
impl From<ProtocolError> for Error
Source§fn from(err: ProtocolError) -> Self
fn from(err: ProtocolError) -> Self
Converts to this type from the input type.
impl Eq for Error
impl StructuralPartialEq for Error
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more