pub enum Error<T = usize> {
Show 15 variants
Failed,
NotSupported,
InvalidParam,
Denied,
InvalidAddress,
AlreadyAvailable,
AlreadyStarted,
AlreadyStopped,
NoShmem,
InvalidState,
BadRange,
Timeout,
Io,
DeniedLocked,
Custom(T),
}Expand description
RISC-V SBI error in enumeration.
Variants§
Failed
Error for SBI call failed for unknown reasons.
NotSupported
Error for target operation not supported.
InvalidParam
Error for invalid parameter.
Denied
Error for denied.
InvalidAddress
Error for invalid address.
AlreadyAvailable
Error for resource already available.
AlreadyStarted
Error for resource already started.
AlreadyStopped
Error for resource already stopped.
NoShmem
Error for shared memory not available.
InvalidState
Error for invalid state.
BadRange
Error for bad or invalid range.
Timeout
Error for failed due to timeout.
Io
Error for input or output error.
DeniedLocked
Error for denied or not allowed due to lock status.
Custom(T)
Custom error code.
Trait Implementations§
impl<T: Copy> Copy for Error<T>
impl<T: Eq> Eq for Error<T>
impl<T: PartialEq> StructuralPartialEq for Error<T>
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnsafeUnpin for Error<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Error<T>where
T: 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