chrony_confile/ast/rtc.rs
1//! RTC (Real-Time Clock) configuration types.
2//!
3//! These directives configure chrony's RTC tracking, including the hwclock file path,
4//! RTC device, RTC file, and auto-trim threshold.
5
6#[derive(Debug, Clone, PartialEq)]
7pub struct HwClockFileConfig { pub file: String }
8
9#[derive(Debug, Clone, PartialEq)]
10pub struct RtcAutoTrimConfig { pub threshold: f64 }
11
12#[derive(Debug, Clone, PartialEq)]
13pub struct RtcDeviceConfig { pub device: String }
14
15#[derive(Debug, Clone, PartialEq)]
16pub struct RtcFileConfig { pub file: String }