pub struct TcbEvaluationDataNumbers<T: PlatformTypeForTcbInfo, V: VerificationType = Verified> { /* private fields */ }Expand description
Implementation of the TcbEvaluationDataNumbers model https://api.portal.trustedservices.intel.com/content/documentation.html#pcs-tcb-eval-data-numbers-model-v1
Implementations§
Source§impl<T: PlatformTypeForTcbInfo, V: VerificationType> TcbEvaluationDataNumbers<T, V>
impl<T: PlatformTypeForTcbInfo, V: VerificationType> TcbEvaluationDataNumbers<T, V>
pub fn numbers(&self) -> Iter<'_, TcbEvalNumber> ⓘ
Source§impl<T: PlatformTypeForTcbInfo> TcbEvaluationDataNumbers<T>
impl<T: PlatformTypeForTcbInfo> TcbEvaluationDataNumbers<T>
pub fn issue_date(&self) -> &DateTime<Utc>
pub fn next_update(&self) -> &DateTime<Utc>
Source§impl<T: PlatformTypeForTcbInfo> TcbEvaluationDataNumbers<T, Unverified>
impl<T: PlatformTypeForTcbInfo> TcbEvaluationDataNumbers<T, Unverified>
Sourcepub fn select_best(
input_dir: &str,
fmspc: &Fmspc,
tcb_components: &TcbComponents<T::PlatformSpecificTcbComponentData>,
qesvn: u16,
) -> Result<TcbEvalNumber, Error>
pub fn select_best( input_dir: &str, fmspc: &Fmspc, tcb_components: &TcbComponents<T::PlatformSpecificTcbComponentData>, qesvn: u16, ) -> Result<TcbEvalNumber, Error>
Given a particular TCB level, select the best available TCB eval number. That is the one that gives the most favorable TCB status, and the higher one if there’s a tie.
Trait Implementations§
Source§impl<T: Clone + PlatformTypeForTcbInfo, V: Clone + VerificationType> Clone for TcbEvaluationDataNumbers<T, V>
impl<T: Clone + PlatformTypeForTcbInfo, V: Clone + VerificationType> Clone for TcbEvaluationDataNumbers<T, V>
Source§impl<T: Debug + PlatformTypeForTcbInfo, V: Debug + VerificationType> Debug for TcbEvaluationDataNumbers<T, V>
impl<T: Debug + PlatformTypeForTcbInfo, V: Debug + VerificationType> Debug for TcbEvaluationDataNumbers<T, V>
Source§impl<'de, T: PlatformTypeForTcbInfo, V> Deserialize<'de> for TcbEvaluationDataNumbers<T, V>where
V: Deserialize<'de> + VerificationType,
impl<'de, T: PlatformTypeForTcbInfo, V> Deserialize<'de> for TcbEvaluationDataNumbers<T, V>where
V: Deserialize<'de> + VerificationType,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T, V> Forget for TcbEvaluationDataNumbers<T, V>
impl<T, V> Freeze for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Freeze,
V: Freeze,
impl<T, V> RefUnwindSafe for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Send,
V: Send,
impl<T, V> Sync for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Sync,
V: Sync,
impl<T, V> Unpin for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Unpin,
V: Unpin,
impl<T, V> UnsafeUnpin for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: UnsafeUnpin,
V: UnsafeUnpin,
impl<T, V> UnwindSafe for TcbEvaluationDataNumbers<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: UnwindSafe,
V: UnwindSafe,
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