#[non_exhaustive]pub struct Ntp {
pub boot_server: Option<String>,
pub servers: Vec<NtpHost>,
pub peers: Vec<NtpHost>,
pub source_address: Option<String>,
pub trusted_keys: Vec<String>,
pub authentication_keys: Vec<NtpAuthenticationKey>,
pub broadcast_client: bool,
}Expand description
The system ntp configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.boot_server: Option<String>§servers: Vec<NtpHost>§peers: Vec<NtpHost>§source_address: Option<String>§trusted_keys: Vec<String>§authentication_keys: Vec<NtpAuthenticationKey>§broadcast_client: boolTrait Implementations§
impl Eq for Ntp
impl StructuralPartialEq for Ntp
Auto Trait Implementations§
impl Forget for Ntp
impl Freeze for Ntp
impl Move for Ntp
impl RefUnwindSafe for Ntp
impl Send for Ntp
impl Sync for Ntp
impl Unpin for Ntp
impl UnsafeUnpin for Ntp
impl UnwindSafe for Ntp
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