pub enum Error<CommE, PinE> {
Comm(CommE),
Pin(PinE),
InvalidInputData,
InvalidDeviceState,
}
Expand description
All possible errors in this crate
Variants§
Comm(CommE)
I²C/SPI bus error
Pin(PinE)
Pin setting error
InvalidInputData
Invalid input data provided
InvalidDeviceState
Internal device state is invalid.
It was not possible to read a valid date and/or time. The device is probably missing initialization.
Trait Implementations§
Auto Trait Implementations§
impl<CommE, PinE> RefUnwindSafe for Error<CommE, PinE>where CommE: RefUnwindSafe, PinE: RefUnwindSafe,
impl<CommE, PinE> Send for Error<CommE, PinE>where CommE: Send, PinE: Send,
impl<CommE, PinE> Sync for Error<CommE, PinE>where CommE: Sync, PinE: Sync,
impl<CommE, PinE> Unpin for Error<CommE, PinE>where CommE: Unpin, PinE: Unpin,
impl<CommE, PinE> UnwindSafe for Error<CommE, PinE>where CommE: UnwindSafe, PinE: 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