Struct optee_teec::PluginParameters

source ·
pub struct PluginParameters<'a> {
    pub cmd: u32,
    pub sub_cmd: u32,
    pub inout: &'a mut [u8],
    /* private fields */
}
Expand description

struct PluginParameters { @cmd: u32, plugin cmd, defined in proto/ @sub_cmd: u32, plugin subcmd, defined in proto/ @inout: &’a mut u8, input/output buffer shared with TA and plugin @required_outlen, length of output sent to TA }

Fields§

§cmd: u32§sub_cmd: u32§inout: &'a mut [u8]

Implementations§

source§

impl<'a> PluginParameters<'a>

source

pub fn new(cmd: u32, sub_cmd: u32, inout: &'a mut [u8]) -> Self

source

pub fn set_buf_from_slice(&mut self, sendslice: &[u8]) -> Result<()>

source

pub fn get_required_out_len(&self) -> usize

This function returns the required output length If the inout buffer is too small, this indicates the size needed If the inout buffer is large enough, this is the actual output length

Auto Trait Implementations§

§

impl<'a> Freeze for PluginParameters<'a>

§

impl<'a> RefUnwindSafe for PluginParameters<'a>

§

impl<'a> Send for PluginParameters<'a>

§

impl<'a> Sync for PluginParameters<'a>

§

impl<'a> Unpin for PluginParameters<'a>

§

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

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

§

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

§

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.