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>
impl<'a> PluginParameters<'a>
pub fn new(cmd: u32, sub_cmd: u32, inout: &'a mut [u8]) -> Self
pub fn set_buf_from_slice(&mut self, sendslice: &[u8]) -> Result<()>
sourcepub fn get_required_out_len(&self) -> usize
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> 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