pub struct PoolConfig {
pub source: ServerConfig,
pub max_sources: u32,
}Expand description
Configuration for a pool directive.
A pool resolves to multiple NTP servers. The max_sources field limits how many
servers from the pool are used simultaneously. The source field contains the
shared server options (hostname, polling, selection, etc.).
Fields§
§source: ServerConfigThe underlying server configuration (hostname, options, etc.).
max_sources: u32Maximum number of sources to use from this pool (default: 4).
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
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 moreSource§impl Debug for PoolConfig
impl Debug for PoolConfig
Source§impl Default for PoolConfig
impl Default for PoolConfig
Source§impl PartialEq for PoolConfig
impl PartialEq for PoolConfig
Source§fn eq(&self, other: &PoolConfig) -> bool
fn eq(&self, other: &PoolConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
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