pub struct Config<'a> {
pub server: &'a [u8],
pub timeout: Duration,
}Expand description
SNTP client configuration.
server must be a null-terminated byte string (e.g. b"pool.ntp.org\0").
A timeout of Duration::ZERO uses the default (5 s).
Fields§
§server: &'a [u8]NTP server hostname (null-terminated).
timeout: DurationQuery timeout (Duration::ZERO selects the default of 5 s).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnsafeUnpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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