Struct etcd::ClusterInfo
source · pub struct ClusterInfo {
pub cluster_id: Option<String>,
pub etcd_index: Option<u64>,
pub raft_index: Option<u64>,
pub raft_term: Option<u64>,
}
Expand description
Information about the state of the etcd cluster from an API response’s HTTP headers.
Fields§
§cluster_id: Option<String>
An internal identifier for the cluster.
etcd_index: Option<u64>
A unique, monotonically-incrementing integer created for each change to etcd.
raft_index: Option<u64>
A unique, monotonically-incrementing integer used by the Raft protocol.
raft_term: Option<u64>
The current Raft election term.
Trait Implementations§
source§impl Clone for ClusterInfo
impl Clone for ClusterInfo
source§fn clone(&self) -> ClusterInfo
fn clone(&self) -> ClusterInfo
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 ClusterInfo
impl Debug for ClusterInfo
source§impl<'de> Deserialize<'de> for ClusterInfo
impl<'de> Deserialize<'de> for ClusterInfo
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<'a> From<&'a HeaderMap<HeaderValue>> for ClusterInfo
impl<'a> From<&'a HeaderMap<HeaderValue>> for ClusterInfo
source§fn from(headers: &'a HeaderMap<HeaderValue>) -> Self
fn from(headers: &'a HeaderMap<HeaderValue>) -> Self
Converts to this type from the input type.
source§impl Hash for ClusterInfo
impl Hash for ClusterInfo
source§impl PartialEq<ClusterInfo> for ClusterInfo
impl PartialEq<ClusterInfo> for ClusterInfo
source§fn eq(&self, other: &ClusterInfo) -> bool
fn eq(&self, other: &ClusterInfo) -> bool
source§impl Serialize for ClusterInfo
impl Serialize for ClusterInfo
impl Eq for ClusterInfo
impl StructuralEq for ClusterInfo
impl StructuralPartialEq for ClusterInfo
Auto Trait Implementations§
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
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.