pub struct NtpInfo {
pub from_dhcp: bool,
pub servers: Vec<String>,
}Expand description
NTP configuration returned by GetNTP.
Fields§
§from_dhcp: booltrue if NTP servers are obtained from DHCP rather than set manually.
servers: Vec<String>Manually configured NTP server addresses (DNS names or IP strings).
Empty when from_dhcp is true or no servers are configured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NtpInfo
impl RefUnwindSafe for NtpInfo
impl Send for NtpInfo
impl Sync for NtpInfo
impl Unpin for NtpInfo
impl UnsafeUnpin for NtpInfo
impl UnwindSafe for NtpInfo
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