Struct optee_utee::object::AttributeMemref
source · pub struct AttributeMemref<'attrref> { /* private fields */ }
Expand description
A buffer attribute.
Implementations§
source§impl<'attrref> AttributeMemref<'attrref>
impl<'attrref> AttributeMemref<'attrref>
sourcepub fn raw(&self) -> TEE_Attribute
pub fn raw(&self) -> TEE_Attribute
Return the raw struct TEE_Attribute.
sourcepub fn from_ref(id: AttributeId, buffer: &'attrref [u8]) -> Self
pub fn from_ref(id: AttributeId, buffer: &'attrref [u8]) -> Self
Populate a single attribute with a reference to a buffer.
§Parameters
id
: The AttributeId is an identifier of the attribute to populate.buffer
: Input buffer that holds the content of the attribute.
§Example
let mut attr = AttributeMemref::from_ref(AttributeId::SecretValue, &mut [0u8;1]);
Trait Implementations§
source§impl<'attrref> Clone for AttributeMemref<'attrref>
impl<'attrref> Clone for AttributeMemref<'attrref>
source§fn clone(&self) -> AttributeMemref<'attrref>
fn clone(&self) -> AttributeMemref<'attrref>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'attrref> From<AttributeMemref<'attrref>> for Attribute
impl<'attrref> From<AttributeMemref<'attrref>> for Attribute
Convert the buffer attribute AttributeMemref to the general attribute.
source§fn from(attr: AttributeMemref<'_>) -> Self
fn from(attr: AttributeMemref<'_>) -> Self
Converts to this type from the input type.
impl<'attrref> Copy for AttributeMemref<'attrref>
Auto Trait Implementations§
impl<'attrref> Freeze for AttributeMemref<'attrref>
impl<'attrref> RefUnwindSafe for AttributeMemref<'attrref>
impl<'attrref> !Send for AttributeMemref<'attrref>
impl<'attrref> !Sync for AttributeMemref<'attrref>
impl<'attrref> Unpin for AttributeMemref<'attrref>
impl<'attrref> !UnwindSafe for AttributeMemref<'attrref>
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