pub enum GpioHandlerError {
PinOutsideRange(u8),
PinDuplicateValue(u8),
PlatformNotSupported,
}Expand description
Contains error definition for GpioHandler
Variants§
PinOutsideRange(u8)
Configuration contains invalid GPIO pin mapping.
PinDuplicateValue(u8)
Found duplicate GPIO values in configuration.
PlatformNotSupported
This error is triggered, When running either on different OS or without target hardware. Defensive programming: This prevents the startup of the application.
Trait Implementations§
Source§impl Debug for GpioHandlerError
impl Debug for GpioHandlerError
Source§impl Display for GpioHandlerError
impl Display for GpioHandlerError
Source§impl Error for GpioHandlerError
impl Error for GpioHandlerError
1.30.0 · Source§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 · Source§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 GpioHandlerError
impl RefUnwindSafe for GpioHandlerError
impl Send for GpioHandlerError
impl Sync for GpioHandlerError
impl Unpin for GpioHandlerError
impl UnwindSafe for GpioHandlerError
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