Enum redis::cluster_routing::SlotAddr
source · pub enum SlotAddr {
Master,
ReplicaOptional,
ReplicaRequired,
}
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§
source§impl PartialEq for SlotAddr
impl PartialEq for SlotAddr
impl Copy for SlotAddr
impl Eq for SlotAddr
impl StructuralPartialEq for SlotAddr
Auto Trait Implementations§
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