pub struct CommandReturn(_);
Expand description

Possible return values of a command driver method, as specified in TRD104.

This is just a wrapper around SyscallReturn since a command driver method may only return primitve integer types as payload.

It is important for this wrapper to only be constructable over variants of SyscallReturn that are deemed safe for a capsule to construct and return to an application (e.g. not SubscribeSuccess). This means that the inner value must remain private.

Implementations

Command error

Command error with an additional 32-bit data field

Command error with two additional 32-bit data fields

Command error with an additional 64-bit data field

Successful command

Successful command with an additional 32-bit data field

Successful command with two additional 32-bit data fields

Successful command with three additional 32-bit data fields

Successful command with an additional 64-bit data field

Successful command with an additional 64-bit and 32-bit data field

Trait Implementations

Converts to this type from the input type.

Converts to this type from the input type.

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.