[][src]Struct optee_teec::ParamTmpRef

pub struct ParamTmpRef<'a> { /* fields omitted */ }

This type defines a temporary memory reference. It is used as a Operation parameter when the corresponding parameter type is one of MemrefTempInput, MemrefTempOutput, or MemrefTempInout.

Methods

impl<'a> ParamTmpRef<'a>[src]

pub fn new_input(buffer: &'a [u8]) -> Self[src]

Creates a temporary input only memory reference. buffer is a region of memory which needs to be temporarily registered for the duration of the Operation.

pub fn new_output(buffer: &'a mut [u8]) -> Self[src]

Creates a temporary memory reference. buffer is a region of memory which needs to be temporarily registered for the duration of the Operation.

pub fn updated_size(&self) -> usize[src]

Trait Implementations

impl<'a> Param for ParamTmpRef<'a>[src]

Auto Trait Implementations

impl<'a> !Sync for ParamTmpRef<'a>

impl<'a> !Send for ParamTmpRef<'a>

impl<'a> Unpin for ParamTmpRef<'a>

impl<'a> RefUnwindSafe for ParamTmpRef<'a>

impl<'a> !UnwindSafe for ParamTmpRef<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]