pub enum Error {
IoError(Error),
DefinitionError(Error),
SliceError(TryFromSliceError),
Heapless(()),
}
Expand description
Custom Error enum for deriving error types across the application and API.
Expand to fit new dependencies using #[from]
and implement custom error types
with context.
Variants§
IoError(Error)
Derived implementation for standard library IO errors
DefinitionError(Error)
Derived implementation for Doip Definition errors
SliceError(TryFromSliceError)
Derived implementation for standard library Slice errors
Heapless(())
Derived for heapless extend from slice errors
Trait Implementations§
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(value: TryFromSliceError) -> Self
fn from(value: TryFromSliceError) -> Self
Converts to this type from the input type.
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