pub enum SlotAddr {
Master,
ReplicaOptional,
ReplicaRequired,
}
Available on crate feature
cluster
only.Expand description
What type of node should a request be routed to.
Variants§
Master
The request must be routed to primary node
ReplicaOptional
The request may be routed to a replica node. For example, a GET command can be routed either to replica or primary.
ReplicaRequired
The request must be routed to replica node, if one exists. For example, by user requested routing.
Trait Implementations§
impl Copy for SlotAddr
impl Eq for SlotAddr
impl StructuralPartialEq for SlotAddr
Auto Trait Implementations§
impl Freeze for SlotAddr
impl RefUnwindSafe for SlotAddr
impl Send for SlotAddr
impl Sync for SlotAddr
impl Unpin for SlotAddr
impl UnwindSafe for SlotAddr
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.