pub enum Stcc4Error<E> {
ReadI2cError(E),
WriteI2cError(E),
InvalidState,
InvalidData,
CrcError(CrcError),
}Expand description
Represents any error that may happen during communication.
Variants§
ReadI2cError(E)
An error occurred while reading from the sensor.
WriteI2cError(E)
An error occurred while writing to the sensor.
InvalidState
The sensor is in a state that does not permit this command.
InvalidData
The sensor returned data which could not be parsed.
CrcError(CrcError)
CRC related error.
Trait Implementations§
Source§impl<E: Debug> Debug for Stcc4Error<E>
impl<E: Debug> Debug for Stcc4Error<E>
Source§impl<E: PartialEq> PartialEq for Stcc4Error<E>
impl<E: PartialEq> PartialEq for Stcc4Error<E>
impl<E: Eq> Eq for Stcc4Error<E>
impl<E> StructuralPartialEq for Stcc4Error<E>
Auto Trait Implementations§
impl<E> Freeze for Stcc4Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Stcc4Error<E>where
E: RefUnwindSafe,
impl<E> Send for Stcc4Error<E>where
E: Send,
impl<E> Sync for Stcc4Error<E>where
E: Sync,
impl<E> Unpin for Stcc4Error<E>where
E: Unpin,
impl<E> UnwindSafe for Stcc4Error<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