Struct optee_utee::object::ObjectEnumHandle

source ·
pub struct ObjectEnumHandle { /* private fields */ }
Expand description

An enumerator for PersistentObjects.

Implementations§

source§

impl ObjectEnumHandle

source

pub fn allocate() -> Result<Self>

Allocate an object enumerator. Once an object enumerator has been allocated, it can be reused for multiple enumerations.

source

pub fn reset(&mut self)

Reset an object enumerator handle to its initial state after allocation. If an enumeration has been started, it is stopped.

source

pub fn start(&mut self, storage_id: u32) -> Result<()>

Start the enumeration of all the PersistentObjects in a given Trusted Storage. The object information can be retrieved by calling the function ObjectEnumHandle::get_next repeatedly.

source

pub fn get_next<T>( &mut self, object_info: &mut ObjectInfo, object_id: &mut [u8] ) -> Result<u32>

Get the next object in an enumeration and returns information about the object: type, size, identifier, etc.

Trait Implementations§

source§

impl Drop for ObjectEnumHandle

source§

fn drop(&mut self)

Deallocates all resources associated with an object enumerator handle. After this function is called, the handle is no longer valid.

§Panics
  1. If object is not a valid opened object.
  2. If the Implementation detects any other error.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.