pub enum BitByteStructError<E> {
TooManyBits,
TooBigShift,
InputToBig,
InterfaceError(InterfaceError<E>),
BusError(E),
}Expand description
A error type returned by many of the structures in this mod
This error is generic over any type of E including SPI and I2C
the struct also implements from trait for the underlying error and
will report BitByteStructError::Bus in this case.
TODO: better support bus errors by passing them though better, possibly by implementing things more spiffily.
Variants§
Trait Implementations§
Source§impl<E> Debug for BitByteStructError<E>
impl<E> Debug for BitByteStructError<E>
Auto Trait Implementations§
impl<E> Freeze for BitByteStructError<E>where
E: Freeze,
impl<E> RefUnwindSafe for BitByteStructError<E>where
E: RefUnwindSafe,
impl<E> Send for BitByteStructError<E>where
E: Send,
impl<E> Sync for BitByteStructError<E>where
E: Sync,
impl<E> Unpin for BitByteStructError<E>where
E: Unpin,
impl<E> UnwindSafe for BitByteStructError<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