Struct etcd::stats::LeaderInfo
source · Expand description
A small amount of information about the leader of the cluster.
Fields§
§id: String
The unique Raft ID of the leader.
start_time: String
The time the leader started.
uptime: String
The amount of time the leader has been up.
Trait Implementations§
source§impl Clone for LeaderInfo
impl Clone for LeaderInfo
source§fn clone(&self) -> LeaderInfo
fn clone(&self) -> LeaderInfo
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 LeaderInfo
impl Debug for LeaderInfo
source§impl<'de> Deserialize<'de> for LeaderInfo
impl<'de> Deserialize<'de> for LeaderInfo
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 Hash for LeaderInfo
impl Hash for LeaderInfo
source§impl PartialEq<LeaderInfo> for LeaderInfo
impl PartialEq<LeaderInfo> for LeaderInfo
source§fn eq(&self, other: &LeaderInfo) -> bool
fn eq(&self, other: &LeaderInfo) -> bool
source§impl Serialize for LeaderInfo
impl Serialize for LeaderInfo
impl Eq for LeaderInfo
impl StructuralEq for LeaderInfo
impl StructuralPartialEq for LeaderInfo
Auto Trait Implementations§
impl RefUnwindSafe for LeaderInfo
impl Send for LeaderInfo
impl Sync for LeaderInfo
impl Unpin for LeaderInfo
impl UnwindSafe for LeaderInfo
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.