pub enum AxpError<I2cErr> {
I2c(I2cErr),
InvalidVoltage(u16),
InvalidCurrent(u16),
NotSupported(&'static str),
}
Variants§
Trait Implementations§
Source§impl<I2cErr> Error for AxpError<I2cErr>
impl<I2cErr> Error for AxpError<I2cErr>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<I2cErr> Freeze for AxpError<I2cErr>where
I2cErr: Freeze,
impl<I2cErr> RefUnwindSafe for AxpError<I2cErr>where
I2cErr: RefUnwindSafe,
impl<I2cErr> Send for AxpError<I2cErr>where
I2cErr: Send,
impl<I2cErr> Sync for AxpError<I2cErr>where
I2cErr: Sync,
impl<I2cErr> Unpin for AxpError<I2cErr>where
I2cErr: Unpin,
impl<I2cErr> UnwindSafe for AxpError<I2cErr>where
I2cErr: 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