pub enum Error<E> {
CommandError,
NotReadyForCommand,
OscFailedCalibration,
ResponseError,
ValueLimit,
I2c(E),
}Expand description
All possible errors Display not implemented for no_std support
Variants§
CommandError
NotReadyForCommand
AS3935 not happy with the command received
OscFailedCalibration
AS3935 not ready to received a command Oscillator failed to calibrate
ResponseError
response data error
ValueLimit
Value too big
I2c(E)
An error in the underlying I²C system
Trait Implementations§
impl<E: Copy> Copy for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Error<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