chrony-confile 0.1.0

A full-featured Rust library for parsing, editing, validating, and serializing chrony configuration files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! RTC (Real-Time Clock) configuration types.
//!
//! These directives configure chrony's RTC tracking, including the hwclock file path,
//! RTC device, RTC file, and auto-trim threshold.

#[derive(Debug, Clone, PartialEq)]
pub struct HwClockFileConfig { pub file: String }

#[derive(Debug, Clone, PartialEq)]
pub struct RtcAutoTrimConfig { pub threshold: f64 }

#[derive(Debug, Clone, PartialEq)]
pub struct RtcDeviceConfig { pub device: String }

#[derive(Debug, Clone, PartialEq)]
pub struct RtcFileConfig { pub file: String }