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 FromValue for ClusterState
impl FromValue 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 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