pub enum Error<E> {
I2c(E),
UnknownChip(u16),
UnsupportedClock,
}Expand description
A driver error.
Variants§
I2c(E)
The I²C transfer failed.
UnknownChip(u16)
The chip ID is not ES8311_CHIP_ID.
UnsupportedClock
No clock coefficients exist for this MCLK frequency and sample rate.
Trait Implementations§
impl<E: Copy> Copy for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E: PartialEq> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Forget for Error<E>
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> Move for Error<E>
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnsafeUnpin for Error<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Error<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