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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)