Skip to main content

FromRawParameters

Trait FromRawParameters 

Source
pub trait FromRawParameters<'a>: Sized {
    // Required method
    unsafe fn from_raw(
        raw_types: RawParamTypes,
        raw_params: &'a mut RawParams,
    ) -> Result<Self>;
}
Expand description

Convert all four raw parameters at once into a typed tuple.

§Safety

The same safety constraints as FromRawParameter apply to each slot.

Required Methods§

Source

unsafe fn from_raw( raw_types: RawParamTypes, raw_params: &'a mut RawParams, ) -> Result<Self>

Construct Self from the full parameter array.

§Safety

Caller must ensure raw_types and raw_param come from the same TEE entry-point invocation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, A: FromRawParameter<'a>, B: FromRawParameter<'a>, C: FromRawParameter<'a>, D: FromRawParameter<'a>> FromRawParameters<'a> for (A, B, C, D)

Source§

unsafe fn from_raw( raw_types: RawParamTypes, raw_params: &'a mut RawParams, ) -> Result<Self>

Implementors§