#[repr(C)]pub struct PamojaDevice {
pub vendor_id: [u8; 16],
pub class_id: [u8; 16],
pub anchor: [u8; 32],
}Expand description
Who a device is, and whose signature it trusts.
Fields§
§vendor_id: [u8; 16]Who built this firmware.
class_id: [u8; 16]What kind of device this is.
anchor: [u8; 32]The PAMOJA_KEY_LEN-byte key this device anchors its trust in.
Trait Implementations§
Source§impl Clone for PamojaDevice
impl Clone for PamojaDevice
Source§fn clone(&self) -> PamojaDevice
fn clone(&self) -> PamojaDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaDevice
Source§impl Debug for PamojaDevice
impl Debug for PamojaDevice
impl Eq for PamojaDevice
Source§impl PartialEq for PamojaDevice
impl PartialEq for PamojaDevice
Source§fn eq(&self, other: &PamojaDevice) -> bool
fn eq(&self, other: &PamojaDevice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaDevice
Auto Trait Implementations§
impl Freeze for PamojaDevice
impl RefUnwindSafe for PamojaDevice
impl Send for PamojaDevice
impl Sync for PamojaDevice
impl Unpin for PamojaDevice
impl UnsafeUnpin for PamojaDevice
impl UnwindSafe for PamojaDevice
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