Trait optee_utee::property::PropertyValue

source ·
pub trait PropertyValue: Sized {
    // Required method
    unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>;
}
Expand description

Represents a TEE property value. The property value can be of different types, such as string, bool, u32, TEE_UUID, TEE_Identity, etc. The property value is obtained from the TEE property set using the TEE_GetPropertyAs* functions.

Required Methods§

source

unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>

§Safety

This function is unsafe because it dereferences raw pointers from the TEE API. The caller must ensure that the set handle is valid and that the TEE environment is properly initialized.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PropertyValue for bool

source§

unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>

source§

impl PropertyValue for u32

source§

unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>

source§

impl PropertyValue for u64

source§

unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>

source§

impl PropertyValue for String

Implements the PropertyValue trait for all return types: String, Bool, u32, u64, BinaryBlock, UUID, Identity.

source§

unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>

source§

impl PropertyValue for Vec<u8>

source§

unsafe fn from_raw(set: TEE_PropSetHandle, key: CString) -> Result<Self>

Implementors§