pub enum Error<CommE, PinE> {
Comm(CommE),
Pin(PinE),
SensorUnresponsive,
BufferOverflow {
packet_size: usize,
buffer_size: usize,
},
NoDataAvailable,
}Expand description
Low-level errors from the communication interface
Variants§
Comm(CommE)
Sensor communication error
Pin(PinE)
Pin setting error
SensorUnresponsive
The sensor is not responding
BufferOverflow
Buffer overflow - packet too large for receive buffer
Fields
NoDataAvailable
No data available from sensor (timeout waiting for HINTN)
Trait Implementations§
Auto Trait Implementations§
impl<CommE, PinE> Freeze for Error<CommE, PinE>
impl<CommE, PinE> RefUnwindSafe for Error<CommE, PinE>where
CommE: RefUnwindSafe,
PinE: RefUnwindSafe,
impl<CommE, PinE> Send for Error<CommE, PinE>
impl<CommE, PinE> Sync for Error<CommE, PinE>
impl<CommE, PinE> Unpin for Error<CommE, PinE>
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