Enum rustis::commands::ClusterState
source · 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<'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
Auto Trait Implementations§
impl RefUnwindSafe for ClusterState
impl Send for ClusterState
impl Sync for ClusterState
impl Unpin 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