Enum optee_teec::ParamType[][src]

pub enum ParamType {
    None,
    ValueInput,
    ValueOutput,
    ValueInout,
    MemrefTempInput,
    MemrefTempOutput,
    MemrefTempInout,
    MemrefWhole,
    MemrefPartialInput,
    MemrefPartialOutput,
    MemrefPartialInout,
}
Expand description

These are used to indicate the type of Parameter encoded inside the operation structure.

Variants

None

The Parameter is not used.

ValueInput

The Parameter is a TEEC_Value tagged as input.

ValueOutput

The Parameter is a TEEC_Value tagged as output.

ValueInout

The Parameter is a TEEC_Value tagged as both as input and output, i.e., for which both the behaviors of ValueInput and ValueOutput apply.

MemrefTempInput

The Parameter is a TEEC_TempMemoryReference describing a region of memory which needs to be temporarily registered for the duration of the Operation and is tagged as input.

MemrefTempOutput

Same as MemrefTempInput, but the Memory Reference is tagged as output. The Implementation may update the size field to reflect the required output size in some use cases.

MemrefTempInout

A Temporary Memory Reference tagged as both input and output, i.e., for which both the behaviors of MemrefTempInput and MemrefTempOutput apply.

MemrefWhole

The Parameter is a Registered Memory Reference that refers to the entirety of its parent Shared Memory block. The parameter structure is a TEEC_MemoryReference. In this structure, the Implementation MUST read only the parent field and MAY update the size field when the operation completes.

MemrefPartialInput

A Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as input.

MemrefPartialOutput

A Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as output.

MemrefPartialInout

The Registered Memory Reference structure that refers to a partial region of its parent Shared Memory block and is tagged as both input and output, i.e., for which both the behaviors of MemrefPartialInput and MemrefPartialOutput apply.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.