#[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 Ntpwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<NtpHost>: Freeze,
PhantomData<String>: Freeze,
PhantomData<NtpAuthenticationKey>: Freeze,
impl Move for Ntp
impl RefUnwindSafe for Ntp
impl Send for Ntpwhere
RawVecInner: Send,
impl Sync for Ntpwhere
RawVecInner: Sync,
impl Unpin for Ntp
impl UnsafeUnpin for Ntpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<NtpHost>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<NtpAuthenticationKey>: UnsafeUnpin,
impl UnwindSafe for Ntpwhere
RawVecInner: UnwindSafe,
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