VbsRegisterChunk

Struct VbsRegisterChunk 

Source
#[repr(C)]
pub struct VbsRegisterChunk { pub header: VbsChunkHeader, pub reserved: u32, pub vtl: u8, pub reserved2: u8, pub reserved3: u16, pub reserved4: u32, pub name: u32, pub value: [u8; 16], }
Expand description

Structure describing the register being measured. Will be padded to VBS_VP_CHUNK_SIZE_BYTES when hashed to generate digest

Fields§

§header: VbsChunkHeader§reserved: u32§vtl: u8§reserved2: u8§reserved3: u16§reserved4: u32§name: u32§value: [u8; 16]

Trait Implementations§

Source§

impl IntoBytes for VbsRegisterChunk
where VbsChunkHeader: IntoBytes, u32: IntoBytes, u8: IntoBytes, u16: IntoBytes, [u8; 16]: IntoBytes, (): PaddingFree<Self, { _ }>,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for VbsRegisterChunk
where [u8; 16]: KnownLayout,

Source§

type PointerMetadata = <[u8; 16] as KnownLayout>::PointerMetadata

The type of metadata stored in a pointer to Self. Read more
§

fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>

Computes the size of an object of type Self with the given pointer metadata. Read more
Source§

impl Immutable for VbsRegisterChunk
where VbsChunkHeader: Immutable, u32: Immutable, u8: Immutable, u16: Immutable, [u8; 16]: Immutable,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.