Struct etcd::stats::SelfStats

source ·
pub struct SelfStats {
    pub id: String,
    pub name: String,
    pub leader_info: LeaderInfo,
    pub received_append_request_count: u64,
    pub received_bandwidth_rate: Option<f64>,
    pub received_package_rate: Option<f64>,
    pub sent_append_request_count: u64,
    pub sent_bandwidth_rate: Option<f64>,
    pub sent_package_rate: Option<f64>,
    pub start_time: String,
    pub state: String,
}
Expand description

Statistics about an etcd cluster member.

Fields§

§id: String

The unique Raft ID of the member.

§name: String

The member’s name.

§leader_info: LeaderInfo

A small amount of information about the leader of the cluster.

§received_append_request_count: u64

The number of received requests.

§received_bandwidth_rate: Option<f64>

The bandwidth rate of received requests.

§received_package_rate: Option<f64>

The package rate of received requests.

§sent_append_request_count: u64

The number of sent requests.

§sent_bandwidth_rate: Option<f64>

The bandwidth rate of sent requests.

§sent_package_rate: Option<f64>

The package rate of sent requests.

§start_time: String

The time the member started.

§state: String

The Raft state of the member.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.