pub struct TdShimLoader;
Implementations§
Source§impl TdShimLoader
impl TdShimLoader
Sourcepub fn parse(
binary_file: &[u8],
) -> Option<(TdxMetadataDescriptor, Vec<TdxMetadataSection>)>
pub fn parse( binary_file: &[u8], ) -> Option<(TdxMetadataDescriptor, Vec<TdxMetadataSection>)>
generate TdxMetadata elements tupple from input file
§Arguments
filename
- The td-shim binary which contains TdxMetadata
Auto Trait Implementations§
impl Freeze for TdShimLoader
impl RefUnwindSafe for TdShimLoader
impl Send for TdShimLoader
impl Sync for TdShimLoader
impl Unpin for TdShimLoader
impl UnwindSafe for TdShimLoader
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