Struct optee_utee::object::ObjectInfo [−][src]
pub struct ObjectInfo { /* fields omitted */ }
Expand description
Represent the characteristics of an object. This info can be returned by TransientObject function info or PersistentObject function info.
Implementations
Return an ObjectInfo struct based on the raw structrure TEE_ObjectInfo
.
The raw structure contains following fields:
objectType
: The parameter represents one of the TransientObjectType.objectSize
: The current size in bits of the object as determined by its attributes. This will always be less than or equal to maxObjectSize. Set to 0 for uninitialized and data only objects.maxObjectSize
: The maximum objectSize which this object can represent. 3.1) For a PersistentObject, set toobjectSize
. 3.2) For a TransientObject, set to the parametermaxObjectSize
passed to allocate.objectUsage
: A bit vector of UsageFlag.dataSize
: 5.1) For a PersistentObject, set to the current size of the data associated with the object. 5.2) For a TransientObject, always set to 0.dataPosition
: 6.1) For a PersistentObject, set to the current position in the data for this handle. Data positions for different handles on the same object may differ. 6.2) For a TransientObject, set to 0.handleFlags
: A bit vector containing one or more HandleFlag or DataFlag.
Return the dataSize
field of the raw structrure TEE_ObjectInfo
.
Return the objectSize
field of the raw structrure TEE_ObjectInfo
.
Auto Trait Implementations
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnwindSafe for ObjectInfo
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.