pub enum KernelError {
InvalidAlign,
OutOfMemory,
InvalidSize,
InvalidAddress,
InvalidArgument,
HalError(Error),
}Expand description
The error type that is returned when an error in the kernel occurs.
Variants§
InvalidAlign
The alignment is invalid.
OutOfMemory
The kernel is out of memory.
InvalidSize
InvalidAddress
InvalidArgument
HalError(Error)
Trait Implementations§
Source§impl Clone for KernelError
impl Clone for KernelError
Source§fn clone(&self) -> KernelError
fn clone(&self) -> KernelError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelError
Debug msg implementation for KernelError.
impl Debug for KernelError
Debug msg implementation for KernelError.
Source§impl From<Error> for KernelError
impl From<Error> for KernelError
Source§impl PartialEq for KernelError
impl PartialEq for KernelError
impl Eq for KernelError
impl StructuralPartialEq for KernelError
Auto Trait Implementations§
impl Freeze for KernelError
impl RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnwindSafe for KernelError
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