pub enum DacError {
ValueOverflow,
SpiError,
}
Expand description
The custom error for this crate
Variants
ValueOverflow
The value for the specified DAC overflowed
SpiError
An internal embedded hal SPI transfer error
Trait Implementations
sourceimpl From<Infallible> for DacError
impl From<Infallible> for DacError
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DacError
impl Send for DacError
impl Sync for DacError
impl Unpin for DacError
impl UnwindSafe for DacError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more