Struct fred::types::ClusterInfo
source · pub struct ClusterInfo {
pub cluster_state: ClusterState,
pub cluster_slots_assigned: u16,
pub cluster_slots_ok: u16,
pub cluster_slots_pfail: u16,
pub cluster_slots_fail: u16,
pub cluster_known_nodes: u16,
pub cluster_size: u32,
pub cluster_current_epoch: u64,
pub cluster_my_epoch: u64,
pub cluster_stats_messages_sent: u64,
pub cluster_stats_messages_received: u64,
}
Available on crate feature
i-cluster
only.Expand description
A parsed response from the CLUSTER INFO
command.
Fields§
§cluster_state: ClusterState
§cluster_slots_assigned: u16
§cluster_slots_ok: u16
§cluster_slots_pfail: u16
§cluster_slots_fail: u16
§cluster_known_nodes: u16
§cluster_size: u32
§cluster_current_epoch: u64
§cluster_my_epoch: u64
§cluster_stats_messages_sent: u64
§cluster_stats_messages_received: u64
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 Default for ClusterInfo
impl Default for ClusterInfo
source§fn default() -> ClusterInfo
fn default() -> ClusterInfo
Returns the “default value” for a type. Read more
source§impl FromRedis for ClusterInfo
impl FromRedis for ClusterInfo
fn from_value(value: RedisValue) -> Result<Self, RedisError>
source§impl PartialEq for ClusterInfo
impl PartialEq for ClusterInfo
source§fn eq(&self, other: &ClusterInfo) -> bool
fn eq(&self, other: &ClusterInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<RedisValue> for ClusterInfo
impl TryFrom<RedisValue> for ClusterInfo
§type Error = RedisError
type Error = RedisError
The type returned in the event of a conversion error.
impl Eq for ClusterInfo
impl StructuralPartialEq for ClusterInfo
Auto Trait Implementations§
impl Freeze for ClusterInfo
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
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