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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.