Enum ntp_daemon::config::PeerConfig
source · pub enum PeerConfig {
Standard(StandardPeerConfig),
Nts(NtsPeerConfig),
Pool(PoolPeerConfig),
}Variants§
Trait Implementations§
source§impl Clone for PeerConfig
impl Clone for PeerConfig
source§fn clone(&self) -> PeerConfig
fn clone(&self) -> PeerConfig
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 PeerConfig
impl Debug for PeerConfig
source§impl<'de> Deserialize<'de> for PeerConfig
impl<'de> Deserialize<'de> for PeerConfig
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<PeerConfig> for PeerConfig
impl PartialEq<PeerConfig> for PeerConfig
source§fn eq(&self, other: &PeerConfig) -> bool
fn eq(&self, other: &PeerConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> TryFrom<&'a str> for PeerConfig
impl<'a> TryFrom<&'a str> for PeerConfig
impl Eq for PeerConfig
impl StructuralEq for PeerConfig
impl StructuralPartialEq for PeerConfig
Auto Trait Implementations§
impl RefUnwindSafe for PeerConfig
impl Send for PeerConfig
impl Sync for PeerConfig
impl Unpin for PeerConfig
impl UnwindSafe for PeerConfig
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.