Struct optee_utee::object::AttributeMemref [−][src]
pub struct AttributeMemref<'attrref> { /* fields omitted */ }
Expand description
A buffer attribute.
Implementations
Populate a single attribute with a reference to a buffer.
Parameters
id
: The AttributeIdAttributeId 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
Auto Trait Implementations
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
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more