#[repr(C)]pub struct Attribute {
pub id: AttributeId,
pub content: BufferOrValue,
}
Fields§
§id: AttributeId
§content: BufferOrValue
Implementations§
Source§impl Attribute
impl Attribute
pub fn to_binding<'a>(&'a self) -> &'a TEE_Attribute
Source§impl Attribute
impl Attribute
pub fn from_binding<'a>(attr: &'a TEE_Attribute) -> Option<&'a Self>
pub fn is_public(&self) -> bool
pub fn is_value(&self) -> bool
pub fn is_memory_reference(&self) -> bool
pub fn as_value(&self) -> &ValueFields
pub fn as_memory_reference(&self) -> &MemRef
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)