#[non_exhaustive]pub struct NtpHost {
pub address: String,
pub key: Option<String>,
pub prefer: bool,
pub version: Option<String>,
pub routing_instance: Option<String>,
}Expand description
A server or peer entry under ntp.
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.address: StringAddress or hostname.
key: Option<String>Authentication key number.
prefer: bool§version: Option<String>§routing_instance: Option<String>Trait Implementations§
impl Eq for NtpHost
impl StructuralPartialEq for NtpHost
Auto Trait Implementations§
impl Forget for NtpHost
impl Freeze for NtpHost
impl Move for NtpHost
impl RefUnwindSafe for NtpHost
impl Send for NtpHost
impl Sync for NtpHost
impl Unpin for NtpHost
impl UnsafeUnpin for NtpHost
impl UnwindSafe for NtpHost
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