pub struct Device {
pub vendor_id: [u8; 16],
pub class_id: [u8; 16],
pub anchor: PublicIdentity,
}Expand description
Who this device is, and who it trusts to update it.
Fields§
§vendor_id: [u8; 16]Who built this device’s firmware.
class_id: [u8; 16]What kind of device this is.
anchor: PublicIdentityThe key this device anchors its trust in.
It is the root of every decision about who may update the device, so it is
used almost never: either to sign releases directly, or to sign a
Delegation naming a release key that does. The second arrangement is
the one to prefer, because it lets the anchor stay somewhere it is hard to
steal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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