pub enum ReportVariant {
V2,
V3,
V5,
}Expand description
Possible variants of the attestation report.
Variants§
V2
Version 2 of the Attestation Report.
V3
Version 3 of the Attestation Report for PreTurin CPUs.
V5
Version 5 of the Attestation Report
Trait Implementations§
Source§impl ByteParser<()> for ReportVariant
impl ByteParser<()> for ReportVariant
Source§const EXPECTED_LEN: Option<usize>
const EXPECTED_LEN: Option<usize>
Expected size of the byte container
Source§type Bytes = [u8; 4]
type Bytes = [u8; 4]
Byte container definition
Must be constructible and mutable as bytes for encoding,
Source§fn from_bytes_with(bytes: &[u8], params: P) -> Result<Self, Error>
fn from_bytes_with(bytes: &[u8], params: P) -> Result<Self, Error>
Decode from an owned byte container with params.
Source§fn to_bytes_with(&self, params: P) -> Result<Self::Bytes, Error>
fn to_bytes_with(&self, params: P) -> Result<Self::Bytes, Error>
Encode into an owned byte container with params.
Source§impl Decoder<()> for ReportVariant
impl Decoder<()> for ReportVariant
Auto Trait Implementations§
impl Freeze for ReportVariant
impl RefUnwindSafe for ReportVariant
impl Send for ReportVariant
impl Sync for ReportVariant
impl Unpin for ReportVariant
impl UnsafeUnpin for ReportVariant
impl UnwindSafe for ReportVariant
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