pub struct ReplicaTarget {
pub peer_idx: u32,
pub dc: String,
pub rack: String,
pub is_local: bool,
}Expand description
One replica target produced by ClusterDispatcher::plan.
Fields§
§peer_idx: u32Index of the target peer in the pool’s peer array.
dc: StringDatacenter name.
rack: StringRack name.
is_local: boolTrue when the target is the local node.
Trait Implementations§
Source§impl Clone for ReplicaTarget
impl Clone for ReplicaTarget
Source§fn clone(&self) -> ReplicaTarget
fn clone(&self) -> ReplicaTarget
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 ReplicaTarget
impl Debug for ReplicaTarget
Source§impl PartialEq for ReplicaTarget
impl PartialEq for ReplicaTarget
Source§fn eq(&self, other: &ReplicaTarget) -> bool
fn eq(&self, other: &ReplicaTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReplicaTarget
impl StructuralPartialEq for ReplicaTarget
Auto Trait Implementations§
impl Freeze for ReplicaTarget
impl RefUnwindSafe for ReplicaTarget
impl Send for ReplicaTarget
impl Sync for ReplicaTarget
impl Unpin for ReplicaTarget
impl UnsafeUnpin for ReplicaTarget
impl UnwindSafe for ReplicaTarget
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.