Struct optee_utee::object::AttributeValue
source · pub struct AttributeValue { /* private fields */ }
Expand description
A value attribute.
Implementations§
source§impl AttributeValue
impl AttributeValue
sourcepub fn raw(&self) -> TEE_Attribute
pub fn raw(&self) -> TEE_Attribute
Return the raw struct TEE_Attribute.
sourcepub fn from_value(id: AttributeId, a: u32, b: u32) -> Self
pub fn from_value(id: AttributeId, a: u32, b: u32) -> Self
Populate a single attribute with two u32 values.
§Parameters
id
: The AttributeId is an identifier of the attribute to populate.a
,b
: u32 values to assign to the members of the value attribute.
§Example
let mut attr = AttributeValue::from_value(AttributeId::SecretValue, 0, 0);
Trait Implementations§
source§impl From<AttributeValue> for Attribute
impl From<AttributeValue> for Attribute
Convert the value attribute AttributeValue to the general attribute.
source§fn from(attr: AttributeValue) -> Self
fn from(attr: AttributeValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl !Send for AttributeValue
impl !Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
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