pub enum SbiError {
Failed,
NotSupported,
InvalidParameter,
Denied,
InvalidAddress,
AlreadyAvailable,
AlreadyStarted,
AlreadyStopped,
}
Expand description
Error codes returned by SBI calls
note: SBI_SUCCESS
is not represented here since this is to be used as the
error type in a Result
Variants
Failed
The SBI call failed
NotSupported
The SBI call is not implemented or the functionality is not available
InvalidParameter
An invalid parameter was passed
Denied
The SBI implementation has denied execution of the call functionality
InvalidAddress
An invalid address was passed
AlreadyAvailable
The resource is already available
AlreadyStarted
The resource was previously started
AlreadyStopped
The resource was previously stopped
Trait Implementations
impl Copy for SbiError
impl Eq for SbiError
impl StructuralEq for SbiError
impl StructuralPartialEq for SbiError
Auto Trait Implementations
impl RefUnwindSafe for SbiError
impl Send for SbiError
impl Sync for SbiError
impl Unpin for SbiError
impl UnwindSafe for SbiError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more