pub struct SlotReport {
pub slot: u8,
pub key: Option<SlotMetadata>,
pub certificate: SlotCertificate,
}Expand description
The store slot: its key (as GET METADATA reports it) and certificate.
Fields§
§slot: u8§key: Option<SlotMetadata>None when the slot is empty, or the firmware cannot tell.
certificate: SlotCertificateImplementations§
Source§impl SlotReport
impl SlotReport
Sourcepub fn is_occupied(&self) -> bool
pub fn is_occupied(&self) -> bool
The slot holds something yb would replace: a key or a certificate.
Sourcepub fn certificate_unusable(&self) -> bool
pub fn certificate_unusable(&self) -> bool
The certificate exists but does not hold an EC P-256 key.
Trait Implementations§
Source§impl Clone for SlotReport
impl Clone for SlotReport
Source§impl Debug for SlotReport
impl Debug for SlotReport
impl Eq for SlotReport
Source§impl PartialEq for SlotReport
impl PartialEq for SlotReport
impl StructuralPartialEq for SlotReport
Auto Trait Implementations§
impl Freeze for SlotReport
impl RefUnwindSafe for SlotReport
impl Send for SlotReport
impl Sync for SlotReport
impl Unpin for SlotReport
impl UnsafeUnpin for SlotReport
impl UnwindSafe for SlotReport
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.