Skip to main content

TEEC_Operation

Struct TEEC_Operation 

Source
#[repr(C)]
pub struct TEEC_Operation { pub started: u32, pub paramTypes: u32, pub params: [TEEC_Parameter; 4], pub imp: TEEC_Operation__Imp, }
Expand description

保存用于 TEEC_InvokeCommand() 的信息和内存引用

TEEC_Operation 结构体用于保存调用命令所需的信息和内存引用, 包括参数类型、参数值以及与操作关联的会话信息,是执行可信应用命令的核心数据结构。

§字段

  • started - 如果客户端希望能够取消即将执行的操作,必须将该字段初始化为 0
  • paramTypes - 表示传递参数类型,使用 TEEC_PARAM_TYPES 来生成正确的标志,若为 0,则表示所有参数均为 TEEC_NONE
  • params - 类型为 TEEC_Parameter 的参数数组
  • imp - 实现定义字段,包含 session 字段,表示与该操作关联的最近一次会话的内部指针

Fields§

§started: u32§paramTypes: u32§params: [TEEC_Parameter; 4]§imp: TEEC_Operation__Imp

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> 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, 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.