#[repr(C, align(4))]pub struct ReportType {
pub report_type: u8,
pub subtype: u8,
pub version: u8,
pub reserved: u8,
}Expand description
Rust definition of REPORTTYPE from REPORTMACSTRUCT.
Ref: Intel® Trust Domain CPU Architectural Extensions, table 2-4. Version: 343754-002US, MAY 2021 Link: https://cdrdv2.intel.com/v1/dl/getContent/733582
Fields§
§report_type: u8Trusted Execution Environment(TEE) type: 0x00: SGX Legacy REPORT TYPE 0x7F-0x01: Reserved 0x80: Reserved 0x81: TEE Report type 2 0xFF-0x82: Reserved
subtype: u8TYPE-specific subtype, Stage1: value is 0
version: u8TYPE-specific version, Stage1: value is 0
reserved: u8Implementations§
Source§impl ReportType
impl ReportType
Sourcepub fn try_copy_from(src: &[u8]) -> Option<Self>
pub fn try_copy_from(src: &[u8]) -> Option<Self>
If src has the correct length for this type, returns Some<T>
copied from src, else returns None.
Source§impl ReportType
impl ReportType
pub const UNPADDED_SIZE: usize = 4
Trait Implementations§
Source§impl AsRef<[u8]> for ReportType
impl AsRef<[u8]> for ReportType
Source§impl Clone for ReportType
impl Clone for ReportType
Source§fn clone(&self) -> ReportType
fn clone(&self) -> ReportType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReportType
impl Debug for ReportType
Source§impl Default for ReportType
impl Default for ReportType
Source§fn default() -> ReportType
fn default() -> ReportType
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReportType
impl PartialEq for ReportType
impl Eq for ReportType
impl StructuralPartialEq for ReportType
Auto Trait Implementations§
impl Freeze for ReportType
impl RefUnwindSafe for ReportType
impl Send for ReportType
impl Sync for ReportType
impl Unpin for ReportType
impl UnsafeUnpin for ReportType
impl UnwindSafe for ReportType
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