pub struct Parameter {
pub raw: *mut TEE_Param,
pub param_type: ParamType,
}Expand description
§Deprecated
Use the concrete typed wrappers
(super::value::ParameterValueInput, super::memref::ParameterMemrefInput, etc.)
instead. They encode the parameter type in the Rust type system, making
mismatched-type errors impossible at compile time.
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 !Send for Parameter
impl !Sync for Parameter
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Unpin for Parameter
impl UnsafeUnpin 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