pub enum ReplicaState {
Available,
Recovering,
Unavailable,
}Expand description
Operational state of a replica that may answer a query for a target range.
Variants§
Available
Replica is available and not known to be recovering.
Recovering
Replica can answer, but its data may still be catching up.
Replica should not be selected for query execution.
Trait Implementations§
Source§impl Clone for ReplicaState
impl Clone for ReplicaState
Source§fn clone(&self) -> ReplicaState
fn clone(&self) -> ReplicaState
Returns a duplicate 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 ReplicaState
impl Debug for ReplicaState
Source§impl Hash for ReplicaState
impl Hash for ReplicaState
Source§impl Ord for ReplicaState
impl Ord for ReplicaState
Source§fn cmp(&self, other: &ReplicaState) -> Ordering
fn cmp(&self, other: &ReplicaState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReplicaState
impl PartialEq for ReplicaState
Source§impl PartialOrd for ReplicaState
impl PartialOrd for ReplicaState
impl Copy for ReplicaState
impl Eq for ReplicaState
impl StructuralPartialEq for ReplicaState
Auto Trait Implementations§
impl Freeze for ReplicaState
impl RefUnwindSafe for ReplicaState
impl Send for ReplicaState
impl Sync for ReplicaState
impl Unpin for ReplicaState
impl UnsafeUnpin for ReplicaState
impl UnwindSafe for ReplicaState
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