EventRecord

Struct EventRecord 

Source
pub struct EventRecord {
    pub name: String,
    pub group: String,
    pub pcr_index: u32,
    pub event_type: u32,
    pub digest_records: Vec<DigestRecords>,
    pub data: Option<Vec<u8>>,
    pub raw_data: Option<Vec<u8>>,
}
Expand description

Represents a record of an event with details related to its metadata and associated data.

This structure captures information about an event that has been recorded, such as its name, its associated group, platform configuration register (PCR) index, event type, cryptographic digest records, and optional event data.

§Fields

  • name: A descriptive name for the event.

  • group: The group or category to which the event belongs.

  • pcr_index: The index of the Platform Configuration Register (PCR) associated with this event. PCRs are used for storing measurements in trusted environments (e.g., TPM).

  • event_type: An identifier representing the type of event. This can be used to classify the event or understand what kind of action triggered it.

  • digest_records: A collection of cryptographic digest records associated with the event. These represent hashed measurements that are linked to the integrity of the event data.

  • data: Optional data payload of the event. This contains additional context or information associated with the event, stored as a vector of bytes. It is optional and may be None if no additional data is present.

  • raw_data: Optional raw data payload of the event. This may store raw or unprocessed data in the form of a vector of bytes. Like data, this field is optional and may also be None.

Fields§

§name: String§group: String§pcr_index: u32§event_type: u32§digest_records: Vec<DigestRecords>§data: Option<Vec<u8>>§raw_data: Option<Vec<u8>>

Trait Implementations§

Source§

impl Clone for EventRecord

Source§

fn clone(&self) -> EventRecord

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.