pub enum DeviceError<E: Debug> {
PwmError(Error<E>),
ImuError(Error<E>),
AccelError(Error<Error<E>>),
ImuNotInitialized,
PwmNotInitialized,
}Expand description
Errors that can occur when interacting with I2C-based devices.
Variants§
PwmError(Error<E>)
ImuError(Error<E>)
AccelError(Error<Error<E>>)
ImuNotInitialized
PwmNotInitialized
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for DeviceError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DeviceError<E>where
E: RefUnwindSafe,
impl<E> Send for DeviceError<E>where
E: Send,
impl<E> Sync for DeviceError<E>where
E: Sync,
impl<E> Unpin for DeviceError<E>where
E: Unpin,
impl<E> UnwindSafe for DeviceError<E>where
E: 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