pub struct TcbData<T: PlatformTypeForTcbInfo, V: VerificationType = Verified> { /* private fields */ }Implementations§
Source§impl<T: PlatformTypeForTcbInfo> TcbData<T, Verified>
impl<T: PlatformTypeForTcbInfo> TcbData<T, Verified>
pub fn version(&self) -> u16
pub fn fmspc(&self) -> &Fmspc
pub fn issue_date(&self) -> &DateTime<Utc>
pub fn next_update(&self) -> &DateTime<Utc>
Sourcepub fn find_sgx_tcb_level<TT>(
&self,
tcb_level: &TcbComponents<TT>,
) -> Option<&TcbLevel<T::PlatformSpecificTcbComponentData>>
pub fn find_sgx_tcb_level<TT>( &self, tcb_level: &TcbComponents<TT>, ) -> Option<&TcbLevel<T::PlatformSpecificTcbComponentData>>
Function to find matching TCB level, but disregarding the platform-specific TCB components, and only compares the SGX TCB components.
Source§impl<'de, T: PlatformTypeForTcbInfo> TcbData<T, Unverified>
impl<'de, T: PlatformTypeForTcbInfo> TcbData<T, Unverified>
Sourcepub fn tcb_component_index(&self, comp: TcbComponentType) -> Option<usize>
pub fn tcb_component_index(&self, comp: TcbComponentType) -> Option<usize>
Returns the index of the TCB component
Source§impl<T: PlatformTypeForTcbInfo, V: VerificationType> TcbData<T, V>
impl<T: PlatformTypeForTcbInfo, V: VerificationType> TcbData<T, V>
pub fn tcb_evaluation_data_number(&self) -> u64
pub fn iter_tcb_components( &self, ) -> impl Iterator<Item = (CpuSvn, PceIsvsvn)> + '_
Source§impl TcbData<TDX, Verified>
impl TcbData<TDX, Verified>
pub fn tdx_module(&self) -> &TdxModule
pub fn iter_tdx_module_identities( &self, ) -> impl Iterator<Item = &TdxModuleIdentity> + '_
pub fn find_tdx_module_identity(&self, id: u8) -> Option<&TdxModuleIdentity>
Sourcepub fn find_tdx_tcb_level<'a>(
&'a self,
tcb_level: &TcbComponents<<TDX as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>,
) -> Option<TdxTcbLevel<'a>>
pub fn find_tdx_tcb_level<'a>( &'a self, tcb_level: &TcbComponents<<TDX as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>, ) -> Option<TdxTcbLevel<'a>>
Function to find matching TCB level with TDX TCB comparison function
Trait Implementations§
Source§impl<T: Clone + PlatformTypeForTcbInfo, V: Clone + VerificationType> Clone for TcbData<T, V>
impl<T: Clone + PlatformTypeForTcbInfo, V: Clone + VerificationType> Clone for TcbData<T, V>
Source§impl<T: Debug + PlatformTypeForTcbInfo, V: Debug + VerificationType> Debug for TcbData<T, V>
impl<T: Debug + PlatformTypeForTcbInfo, V: Debug + VerificationType> Debug for TcbData<T, V>
Source§impl<'de, T, V> Deserialize<'de> for TcbData<T, V>where
V: Deserialize<'de> + VerificationType,
T::PlatformSpecificTcbData: Deserialize<'de>,
T: Default + PlatformTypeForTcbInfo,
impl<'de, T, V> Deserialize<'de> for TcbData<T, V>where
V: Deserialize<'de> + VerificationType,
T::PlatformSpecificTcbData: Deserialize<'de>,
T: Default + PlatformTypeForTcbInfo,
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 TcbData<T, V>
impl<T, V> Freeze for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Freeze,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: Freeze,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: Freeze,
V: Freeze,
impl<T, V> RefUnwindSafe for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: RefUnwindSafe,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: RefUnwindSafe,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Send,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: Send,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: Send,
V: Send,
impl<T, V> Sync for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Sync,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: Sync,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: Sync,
V: Sync,
impl<T, V> Unpin for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: Unpin,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: Unpin,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: Unpin,
V: Unpin,
impl<T, V> UnsafeUnpin for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: UnsafeUnpin,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: UnsafeUnpin,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: UnsafeUnpin,
V: UnsafeUnpin,
impl<T, V> UnwindSafe for TcbData<T, V>where
TcbComponents<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>: Sized,
T: UnwindSafe,
Vec<TcbLevel<<T as PlatformTypeForTcbComponent>::PlatformSpecificTcbComponentData>>: UnwindSafe,
<T as PlatformTypeForTcbInfo>::PlatformSpecificTcbData: 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