pub enum Error<EIN, EOUT> {
Input(EIN),
Output(EOUT),
}
Expand description
Error type for Input and Output errors on digital pins.
For some HALs, the digital input and output pins can never fail.
If you use the driver with such a crate, you can use .into_ok()
on all results
instead of .unwrap()
or .expect()
.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<EIN, EOUT> Freeze for Error<EIN, EOUT>
impl<EIN, EOUT> RefUnwindSafe for Error<EIN, EOUT>where
EIN: RefUnwindSafe,
EOUT: RefUnwindSafe,
impl<EIN, EOUT> Send for Error<EIN, EOUT>
impl<EIN, EOUT> Sync for Error<EIN, EOUT>
impl<EIN, EOUT> Unpin for Error<EIN, EOUT>
impl<EIN, EOUT> UnwindSafe for Error<EIN, EOUT>where
EIN: UnwindSafe,
EOUT: UnwindSafe,
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