Enum ntp_daemon::config::PeerHostMode
source · pub enum PeerHostMode {
Server,
NtsServer,
Pool,
}Variants§
Trait Implementations§
source§impl Clone for PeerHostMode
impl Clone for PeerHostMode
source§fn clone(&self) -> PeerHostMode
fn clone(&self) -> PeerHostMode
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 PeerHostMode
impl Debug for PeerHostMode
source§impl Default for PeerHostMode
impl Default for PeerHostMode
source§fn default() -> PeerHostMode
fn default() -> PeerHostMode
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PeerHostMode
impl<'de> Deserialize<'de> for PeerHostMode
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<PeerHostMode> for PeerHostMode
impl PartialEq<PeerHostMode> for PeerHostMode
source§fn eq(&self, other: &PeerHostMode) -> bool
fn eq(&self, other: &PeerHostMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PeerHostMode
impl Eq for PeerHostMode
impl StructuralEq for PeerHostMode
impl StructuralPartialEq for PeerHostMode
Auto Trait Implementations§
impl RefUnwindSafe for PeerHostMode
impl Send for PeerHostMode
impl Sync for PeerHostMode
impl Unpin for PeerHostMode
impl UnwindSafe for PeerHostMode
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.