pub enum RackDistance {
Same,
SameDc,
Remote,
}Expand description
Coarse-grained proximity classification used by the dispatcher to order replica candidates.
Variants§
Same
Same datacenter, same rack.
SameDc
Same datacenter, different rack.
Remote
Different datacenter.
Implementations§
Trait Implementations§
Source§impl Clone for RackDistance
impl Clone for RackDistance
Source§fn clone(&self) -> RackDistance
fn clone(&self) -> RackDistance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RackDistance
impl Debug for RackDistance
Source§impl Hash for RackDistance
impl Hash for RackDistance
Source§impl PartialEq for RackDistance
impl PartialEq for RackDistance
Source§fn eq(&self, other: &RackDistance) -> bool
fn eq(&self, other: &RackDistance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RackDistance
impl Eq for RackDistance
impl StructuralPartialEq for RackDistance
Auto Trait Implementations§
impl Freeze for RackDistance
impl RefUnwindSafe for RackDistance
impl Send for RackDistance
impl Sync for RackDistance
impl Unpin for RackDistance
impl UnsafeUnpin for RackDistance
impl UnwindSafe for RackDistance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.