pub struct Ntp {
pub server: NtpServerAddr,
}Expand description
NTP clock source with server address.
Fields§
§server: NtpServerAddrImplementations§
Source§impl Ntp
impl Ntp
Sourcepub fn from_hostname(hostname: impl ToString) -> Ntp
pub fn from_hostname(hostname: impl ToString) -> Ntp
Constructs an Ntp clock source from the specified hostname.
Sourcepub fn from_hostname_with_port(hostname: impl ToString, port: u16) -> Ntp
pub fn from_hostname_with_port(hostname: impl ToString, port: u16) -> Ntp
Constructs an Ntp clock source from the specified hostname and port.
Sourcepub fn new_traceable() -> Ntp
pub fn new_traceable() -> Ntp
Constructs a traceable Ntp clock source.
Trait Implementations§
impl Eq for Ntp
Source§impl From<Ntp> for ReferenceClock
impl From<Ntp> for ReferenceClock
Source§impl From<NtpServerAddr> for Ntp
impl From<NtpServerAddr> for Ntp
Source§fn from(server: NtpServerAddr) -> Self
fn from(server: NtpServerAddr) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Ntp
Auto Trait Implementations§
impl Freeze 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