pub enum Error {
Param,
PeripheralBusy,
WaitTimeout,
Unknown,
}Expand description
The error list.
Every MCU fireware libraries may has their own error types. So every implementation crates need to convert between the real error types and these types.
Variants§
Param
Transport a wrong parameters to the C function.
PeripheralBusy
The periphery is still busy and can’t do the request operation.
WaitTimeout
Some operation over the specfic waitting time.
Unknown
Unknown reason errors.
Trait Implementations§
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