#[repr(C)]pub struct AttestationEntry {
pub entry_type: AttestationEntryType,
pub data_hash: [u8; 32],
pub timestamp_ns: u64,
pub task_id: u32,
pub component_id: u32,
pub flags: AttestationFlags,
pub reserved: [u8; 8],
}Expand description
Witness log entry for attestation.
Used for entries other than boot attestation that record proof-gated mutations and other security events.
Fields§
§entry_type: AttestationEntryTypeEntry type identifier.
data_hash: [u8; 32]Hash of the attested data.
timestamp_ns: u64Timestamp in nanoseconds since UNIX epoch.
task_id: u32Task that generated this attestation.
component_id: u32Component that generated this attestation.
flags: AttestationFlagsAdditional flags.
reserved: [u8; 8]Reserved for future use.
Implementations§
Source§impl AttestationEntry
impl AttestationEntry
Sourcepub fn new(
entry_type: AttestationEntryType,
data_hash: [u8; 32],
timestamp_ns: u64,
task_id: u32,
component_id: u32,
) -> Self
pub fn new( entry_type: AttestationEntryType, data_hash: [u8; 32], timestamp_ns: u64, task_id: u32, component_id: u32, ) -> Self
Creates a new attestation entry.
Trait Implementations§
Source§impl Clone for AttestationEntry
impl Clone for AttestationEntry
Source§fn clone(&self) -> AttestationEntry
fn clone(&self) -> AttestationEntry
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 AttestationEntry
impl Debug for AttestationEntry
Source§impl Default for AttestationEntry
impl Default for AttestationEntry
Source§impl PartialEq for AttestationEntry
impl PartialEq for AttestationEntry
impl Copy for AttestationEntry
impl Eq for AttestationEntry
impl StructuralPartialEq for AttestationEntry
Auto Trait Implementations§
impl Freeze for AttestationEntry
impl RefUnwindSafe for AttestationEntry
impl Send for AttestationEntry
impl Sync for AttestationEntry
impl Unpin for AttestationEntry
impl UnsafeUnpin for AttestationEntry
impl UnwindSafe for AttestationEntry
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