pub struct Error<I>(/* private fields */);
Implementations§
Source§impl<E> Error<E>
impl<E> Error<E>
Sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Returns true
if a read from the sensor timed out.
Sourcepub fn is_io(&self) -> bool
pub fn is_io(&self) -> bool
Returns true
if an IO error occurred while reading from or writing to
the sensor’s data pin.
Sourcepub fn is_checksum(&self) -> bool
pub fn is_checksum(&self) -> bool
Returns true
if the reading from the sensor had a bad checksum.
Trait Implementations§
impl<I: Eq> Eq for Error<I>
impl<I> StructuralPartialEq for Error<I>
Auto Trait Implementations§
impl<I> Freeze for Error<I>where
I: Freeze,
impl<I> RefUnwindSafe for Error<I>where
I: RefUnwindSafe,
impl<I> Send for Error<I>where
I: Send,
impl<I> Sync for Error<I>where
I: Sync,
impl<I> Unpin for Error<I>where
I: Unpin,
impl<I> UnwindSafe for Error<I>where
I: 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