pub struct LeaderStats {
pub leader: String,
pub followers: HashMap<String, FollowerStats>,
}Expand description
Statistics about an etcd cluster leader.
Fields§
§leader: StringA unique identifier of a leader member.
followers: HashMap<String, FollowerStats>Statistics for each peer in the cluster keyed by each peer’s unique identifier.
Trait Implementations§
Source§impl Clone for LeaderStats
impl Clone for LeaderStats
Source§fn clone(&self) -> LeaderStats
fn clone(&self) -> LeaderStats
Returns a duplicate 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 LeaderStats
impl Debug for LeaderStats
Source§impl<'de> Deserialize<'de> for LeaderStats
impl<'de> Deserialize<'de> for LeaderStats
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 for LeaderStats
impl PartialEq for LeaderStats
Source§impl Serialize for LeaderStats
impl Serialize for LeaderStats
impl StructuralPartialEq for LeaderStats
Auto Trait Implementations§
impl Freeze for LeaderStats
impl RefUnwindSafe for LeaderStats
impl Send for LeaderStats
impl Sync for LeaderStats
impl Unpin for LeaderStats
impl UnwindSafe for LeaderStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more