Enum redis_driver::ClusterState
source · pub enum ClusterState {
Ok,
Fail,
}Expand description
Cluster state used in the cluster_statefield of crate::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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more