chrony-confile 0.1.0

A full-featured Rust library for parsing, editing, validating, and serializing chrony configuration files
Documentation
//! Logging configuration types.
//!
//! These directives control chrony's logging behaviour, including which measurement data to log,
//! log banner frequency, log change thresholds, and the log directory path.

#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct LogConfig {
    pub raw_measurements: bool,
    pub measurements: bool,
    pub selection: bool,
    pub statistics: bool,
    pub tracking: bool,
    pub rtc: bool,
    pub refclocks: bool,
    pub tempcomp: bool,
}

#[derive(Debug, Clone, PartialEq)]
pub struct LogBannerConfig { pub limit: u32 }

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

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