chrony_confile/ast/
clock.rs1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
10pub enum LeapSecMode {
11 System,
13 Step,
15 Slew,
17 Ignore,
19}
20
21#[derive(Debug, Clone, PartialEq)]
22pub struct ClockPrecisionConfig { pub precision: f64 }
23
24#[derive(Debug, Clone, PartialEq)]
25pub struct CorrTimeRatioConfig { pub ratio: f64 }
26
27#[derive(Debug, Clone, PartialEq)]
28pub struct DriftFileConfig { pub path: String, pub interval: Option<u32> }
29
30#[derive(Debug, Clone, PartialEq)]
31pub struct FallbackDriftConfig { pub min: i32, pub max: i32 }
32
33#[derive(Debug, Clone, PartialEq)]
34pub struct LeapSecTzConfig { pub timezone: String }
35
36#[derive(Debug, Clone, PartialEq)]
37pub struct LeapSecListConfig { pub file: String }
38
39#[derive(Debug, Clone, PartialEq)]
40pub struct MakeStepConfig { pub threshold: f64, pub limit: i32 }
41
42#[derive(Debug, Clone, PartialEq)]
43pub struct MaxChangeConfig { pub offset: f64, pub start: i32, pub ignore: i32 }
44
45#[derive(Debug, Clone, PartialEq)]
46pub struct MaxClockErrorConfig { pub error_ppm: f64 }
47
48#[derive(Debug, Clone, PartialEq)]
49pub struct MaxDriftConfig { pub drift_ppm: f64 }
50
51#[derive(Debug, Clone, PartialEq)]
52pub struct MaxUpdateSkewConfig { pub skew_ppm: f64 }
53
54#[derive(Debug, Clone, PartialEq)]
55pub struct MaxSlewRateConfig { pub rate_ppm: f64 }
56
57#[derive(Debug, Clone, PartialEq)]
62pub enum TempCompConfig {
63 Coefficients { file: String, interval: f64, t0: f64, k0: f64, k1: f64, k2: f64 },
65 PointFile { file: String, interval: f64, points_file: String },
67}