pub struct TimesyncBoot {
pub signature: u16,
pub header_size: u16,
pub unknown: u32,
pub boot_uuid: String,
pub timebase_numerator: u32,
pub timebase_denominator: u32,
pub boot_time: i64,
pub timezone_offset_mins: u32,
pub daylight_savings: u32,
pub timesync: Vec<Timesync>,
}Fields§
§signature: u16§header_size: u16§unknown: u32§boot_uuid: String§timebase_numerator: u32§timebase_denominator: u32§boot_time: i64§timezone_offset_mins: u32§daylight_savings: u32§timesync: Vec<Timesync>Implementations§
Source§impl TimesyncBoot
impl TimesyncBoot
Sourcepub fn parse_timesync_data(
data: &[u8],
) -> IResult<&[u8], HashMap<String, TimesyncBoot>>
pub fn parse_timesync_data( data: &[u8], ) -> IResult<&[u8], HashMap<String, TimesyncBoot>>
Parse the Unified Log timesync files
Sourcepub fn get_timestamp(
timesync_data: &HashMap<String, TimesyncBoot>,
boot_uuid: &str,
firehose_log_delta_time: u64,
firehose_preamble_time: u64,
) -> f64
pub fn get_timestamp( timesync_data: &HashMap<String, TimesyncBoot>, boot_uuid: &str, firehose_log_delta_time: u64, firehose_preamble_time: u64, ) -> f64
Calculate timestamp for firehose log entry
Trait Implementations§
Source§impl Debug for TimesyncBoot
impl Debug for TimesyncBoot
Source§impl Default for TimesyncBoot
impl Default for TimesyncBoot
Source§fn default() -> TimesyncBoot
fn default() -> TimesyncBoot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimesyncBoot
impl<'de> Deserialize<'de> for TimesyncBoot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimesyncBoot
impl RefUnwindSafe for TimesyncBoot
impl Send for TimesyncBoot
impl Sync for TimesyncBoot
impl Unpin for TimesyncBoot
impl UnwindSafe for TimesyncBoot
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