pub enum TempCompConfig {
Coefficients {
file: String,
interval: f64,
t0: f64,
k0: f64,
k1: f64,
k2: f64,
},
PointFile {
file: String,
interval: f64,
points_file: String,
},
}Expand description
Temperature compensation configuration for chrony.
Can be specified either as polynomial coefficients (6-argument form) or as a points file (3-argument form).
Variants§
Coefficients
Polynomial coefficients form: tempcomp file interval t0 k0 k1 k2
PointFile
Point file form: tempcomp file interval points_file
Trait Implementations§
Source§impl Clone for TempCompConfig
impl Clone for TempCompConfig
Source§fn clone(&self) -> TempCompConfig
fn clone(&self) -> TempCompConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TempCompConfig
impl Debug for TempCompConfig
Source§impl PartialEq for TempCompConfig
impl PartialEq for TempCompConfig
Source§fn eq(&self, other: &TempCompConfig) -> bool
fn eq(&self, other: &TempCompConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TempCompConfig
Auto Trait Implementations§
impl Freeze for TempCompConfig
impl RefUnwindSafe for TempCompConfig
impl Send for TempCompConfig
impl Sync for TempCompConfig
impl Unpin for TempCompConfig
impl UnsafeUnpin for TempCompConfig
impl UnwindSafe for TempCompConfig
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