pub enum Error {
RegisterUnchanged,
DmaError(DmaError),
I2cError(I2cError),
UsartError(UsartError),
TimerError(TimerError),
FlashError(FlashError),
PolynomialError(PolynomialError),
SpiError(SpiError),
RtcError(RtcError),
RccError(RccError),
}
Expand description
Collection of all errors that can occur.
Variants§
RegisterUnchanged
Occurs when an expected change of a register does happen in time.
This is returned when a bounded loop exceeds its alotted iteration count.
DmaError(DmaError)
Direct Memory Access (DMA) error
I2cError(I2cError)
UsartError(UsartError)
TimerError(TimerError)
FlashError(FlashError)
PolynomialError(PolynomialError)
CRC
SpiError(SpiError)
SPI errors.
RtcError(RtcError)
Clock errors.
RccError(RccError)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn kind(&self) -> I2cErrorKind
fn kind(&self) -> I2cErrorKind
Convert error to a generic I2C error kind. Read more
Source§impl Format for Errorwhere
DmaError: Format,
I2cError: Format,
UsartError: Format,
TimerError: Format,
FlashError: Format,
PolynomialError: Format,
SpiError: Format,
RtcError: Format,
RccError: Format,
impl Format for Errorwhere
DmaError: Format,
I2cError: Format,
UsartError: Format,
TimerError: Format,
FlashError: Format,
PolynomialError: Format,
SpiError: Format,
RtcError: Format,
RccError: Format,
Source§impl From<FlashError> for Error
impl From<FlashError> for Error
Source§fn from(error: FlashError) -> Self
fn from(error: FlashError) -> Self
Converts to this type from the input type.
Source§impl From<PolynomialError> for Error
impl From<PolynomialError> for Error
Source§fn from(error: PolynomialError) -> Self
fn from(error: PolynomialError) -> Self
Converts to this type from the input type.
Source§impl From<TimerError> for Error
impl From<TimerError> for Error
Source§fn from(error: TimerError) -> Self
fn from(error: TimerError) -> Self
Converts to this type from the input type.
Source§impl From<UsartError> for Error
impl From<UsartError> for Error
Source§fn from(error: UsartError) -> Self
fn from(error: UsartError) -> Self
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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