Struct ntp_daemon::config::ServerConfig
source · pub struct ServerConfig {
pub addr: SocketAddr,
pub denylist: IpFilter,
pub denylist_action: FilterAction,
pub allowlist: IpFilter,
pub allowlist_action: FilterAction,
pub rate_limiting_cache_size: usize,
pub rate_limiting_cutoff: Duration,
}Fields§
§addr: SocketAddr§denylist: IpFilter§denylist_action: FilterAction§allowlist: IpFilter§allowlist_action: FilterAction§rate_limiting_cache_size: usize§rate_limiting_cutoff: DurationTrait Implementations§
source§impl Clone for ServerConfig
impl Clone for ServerConfig
source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a copy of the value. Read more
1.0.0 · 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 ServerConfig
impl Debug for ServerConfig
source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ServerConfig> for ServerConfig
impl PartialEq<ServerConfig> for ServerConfig
source§fn eq(&self, other: &ServerConfig) -> bool
fn eq(&self, other: &ServerConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&str> for ServerConfig
impl TryFrom<&str> for ServerConfig
impl Eq for ServerConfig
impl StructuralEq for ServerConfig
impl StructuralPartialEq for ServerConfig
Auto Trait Implementations§
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.