pub enum ClusterState {
Ok,
Fail,
}Expand description
Cluster state used in the cluster_state field of ClusterInfo
Variants§
Ok
State is ok if the node is able to receive queries.
Fail
fail if there is at least one hash slot which is unbound (no node associated),
in error state (node serving it is flagged with FAIL flag),
or if the majority of masters can’t be reached by this node.
Trait Implementations§
Source§impl Debug for ClusterState
impl Debug for ClusterState
Source§impl Default for ClusterState
impl Default for ClusterState
Source§impl<'de> Deserialize<'de> for ClusterState
impl<'de> Deserialize<'de> for ClusterState
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
impl Eq for ClusterState
Source§impl PartialEq for ClusterState
impl PartialEq for ClusterState
impl StructuralPartialEq for ClusterState
Auto Trait Implementations§
impl Freeze for ClusterState
impl RefUnwindSafe for ClusterState
impl Send for ClusterState
impl Sync for ClusterState
impl Unpin for ClusterState
impl UnsafeUnpin for ClusterState
impl UnwindSafe for ClusterState
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.