Struct optee_utee::Parameter
source · pub struct Parameter {
pub raw: *mut TEE_Param,
pub param_type: ParamType,
}Fields§
§raw: *mut TEE_Param§param_type: ParamTypeImplementations§
source§impl Parameter
impl Parameter
pub fn from_raw(ptr: *mut TEE_Param, param_type: ParamType) -> Self
sourcepub unsafe fn as_value(&mut self) -> Result<ParamValue<'_>>
pub unsafe fn as_value(&mut self) -> Result<ParamValue<'_>>
§Safety
The caller must ensure that the raw pointer is valid and points to a properly initialized TEE_Param.
sourcepub unsafe fn as_memref(&mut self) -> Result<ParamMemref<'_>>
pub unsafe fn as_memref(&mut self) -> Result<ParamMemref<'_>>
§Safety
The caller must ensure that the raw pointer is valid and points to a properly initialized TEE_Param.
pub fn raw(&self) -> *mut TEE_Param
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl !Send for Parameter
impl !Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more