pub enum HalError {
Config,
Uart(UartError),
Wifi(WifiError),
Flash(FlashError),
Rng,
Hash(HashError),
Timer,
}Expand description
Unified HAL error type.
Aggregates all peripheral-specific errors into a single enum for ergonomic error handling across the HAL.
Variants§
Config
Configuration error (invalid settings).
Uart(UartError)
UART peripheral error.
Wifi(WifiError)
WiFi peripheral error.
Flash(FlashError)
Flash storage error.
Rng
Random number generator error.
Hash(HashError)
Hash/HMAC computation error.
Timer
Timer error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HalError
impl RefUnwindSafe for HalError
impl Send for HalError
impl Sync for HalError
impl Unpin for HalError
impl UnsafeUnpin for HalError
impl UnwindSafe for HalError
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