pub struct BootTimeInfo {
pub best_estimate: Option<i64>,
pub estimates: Vec<BootTimeEstimate>,
pub inconsistent: bool,
pub max_drift_secs: i64,
}Expand description
Aggregated boot time information from multiple sources.
Holds all collected estimates and detects inconsistencies between
them (clock manipulation indicator in DFIR). The best_estimate
is the first (highest-priority) source’s epoch value.
Fields§
§best_estimate: Option<i64>Best estimated boot epoch (Unix seconds), if any source was available.
estimates: Vec<BootTimeEstimate>All collected estimates for cross-validation.
inconsistent: boolWhether sources disagree beyond the drift threshold (60s).
max_drift_secs: i64Maximum drift between any two sources, in seconds.
Implementations§
Source§impl BootTimeInfo
impl BootTimeInfo
Sourcepub fn from_estimates(estimates: Vec<BootTimeEstimate>) -> Self
pub fn from_estimates(estimates: Vec<BootTimeEstimate>) -> Self
Build from a collection of estimates.
The first estimate is treated as highest-priority (“best”). Inconsistency is flagged when any pair of estimates differs by more than 60 seconds.
Sourcepub fn absolute_secs(&self, boot_ns: u64) -> Option<i64>
pub fn absolute_secs(&self, boot_ns: u64) -> Option<i64>
Convert boot-relative nanoseconds to absolute Unix epoch seconds.
Returns None if no boot time estimate is available.
Trait Implementations§
Source§impl Clone for BootTimeInfo
impl Clone for BootTimeInfo
Source§fn clone(&self) -> BootTimeInfo
fn clone(&self) -> BootTimeInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more