optee_teec

Enum ParamType

Source
pub enum ParamType {
    None = 0,
    ValueInput = 1,
    ValueOutput = 2,
    ValueInout = 3,
    MemrefTempInput = 5,
    MemrefTempOutput = 6,
    MemrefTempInout = 7,
    MemrefWhole = 12,
    MemrefPartialInput = 13,
    MemrefPartialOutput = 14,
    MemrefPartialInout = 15,
}
Expand description

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

Variants§

§

None = 0

The Parameter is not used.

§

ValueInput = 1

The Parameter is a TEEC_Value tagged as input.

§

ValueOutput = 2

The Parameter is a TEEC_Value tagged as output.

§

ValueInout = 3

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 = 5

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 = 6

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 = 7

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

§

MemrefWhole = 12

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 = 13

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

§

MemrefPartialOutput = 14

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

§

MemrefPartialInout = 15

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§

Source§

impl Clone for ParamType

Source§

fn clone(&self) -> ParamType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<u32> for ParamType

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl Copy for ParamType

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.