pub enum CommandQueueError {
Show 14 variants NoCommandEntryAvailable, MissingInputPages, MissingInput, IncorrectCommandOpcode, InvalidCommandOpcode, InvalidCommandDeliveryStatus, InvalidCommandReturnStatus, CommandNotCompleted, InvalidMailboxOffset, PageAllocationFailed, UnimplementedOpcode, NotImplemented, InvalidPortType, InvalidSQState,
}
Expand description

Possible reasons for failure when executing a command

Variants§

§

NoCommandEntryAvailable

All command entries are currently being used

§

MissingInputPages

Allocated pages are not passed to a command that requires them

§

MissingInput

Any other input is not passed to a command that requires them

§

IncorrectCommandOpcode

Opcode value in the command entry is not what was expected

§

InvalidCommandOpcode

Opcode in the command entry is not a valid value

§

InvalidCommandDeliveryStatus

Delivery status in the command entry is not a valid value

§

InvalidCommandReturnStatus

Return status in the command entry is not a valid value

§

CommandNotCompleted

Trying to access the command entry before HW is done processing it

§

InvalidMailboxOffset

Offset in a page is too large to map a [CommandInterfaceMailbox] to that offset

§

PageAllocationFailed

A call to create a [MappedPages] failed

§

UnimplementedOpcode

Initializing a comand entry for the given opcode has not been implemented

§

NotImplemented

Some function has not been implemented for the given opcode

§

InvalidPortType

The returned port type is not a valid value

§

InvalidSQState

The returned state of the SQ is invalid

Trait Implementations§

source§

impl From<CommandQueueError> for &'static str

source§

fn from(error: CommandQueueError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.