pub struct PoolBuilder { /* private fields */ }Expand description
Builder for creating pool directives.
Implementations§
Source§impl PoolBuilder
impl PoolBuilder
Sourcepub fn new(hostname: impl Into<String>) -> Self
pub fn new(hostname: impl Into<String>) -> Self
Creates a new builder for the given pool hostname.
All other options are initialized to chrony defaults.
pub fn burst(self) -> Self
pub fn prefer(self) -> Self
pub fn noselect(self) -> Self
pub fn trust(self) -> Self
pub fn require(self) -> Self
pub fn nts(self) -> Self
pub fn offline(self) -> Self
pub fn minpoll(self, poll: PollInterval) -> Self
pub fn maxpoll(self, poll: PollInterval) -> Self
pub fn port(self, port: UdpPort) -> Self
pub fn maxdelay(self, delay: f64) -> Self
pub fn offset(self, offset: f64) -> Self
pub fn version(self, version: NtpVersion) -> Self
pub fn key(self, key_id: u32) -> Self
Sourcepub fn minsamples(self, n: u32) -> Self
pub fn minsamples(self, n: u32) -> Self
Sets the minimum number of samples to keep.
Sourcepub fn maxsamples(self, n: u32) -> Self
pub fn maxsamples(self, n: u32) -> Self
Sets the maximum number of samples to keep.
Sourcepub fn polltarget(self, target: PollTarget) -> Self
pub fn polltarget(self, target: PollTarget) -> Self
Sets the poll target number of samples.
Sourcepub fn maxsources(self, n: u32) -> Self
pub fn maxsources(self, n: u32) -> Self
Sets the maximum number of sources from this pool.
Trait Implementations§
Source§impl Clone for PoolBuilder
impl Clone for PoolBuilder
Source§fn clone(&self) -> PoolBuilder
fn clone(&self) -> PoolBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PoolBuilder
impl RefUnwindSafe for PoolBuilder
impl Send for PoolBuilder
impl Sync for PoolBuilder
impl Unpin for PoolBuilder
impl UnsafeUnpin for PoolBuilder
impl UnwindSafe for PoolBuilder
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