pub enum MultipleNodeRoutingInfo {
AllNodes,
AllMasters,
MultiSlot(Vec<(Route, Vec<usize>)>),
}
Expand description
Defines which collection of nodes should receive a request
Variants§
AllNodes
Route to all nodes in the clusters
AllMasters
Route to all primaries in the cluster
MultiSlot(Vec<(Route, Vec<usize>)>)
Instructions for how to split a multi-slot command (e.g. MGET, MSET) into sub-commands. Each tuple is the route for each subcommand, and the indices of the arguments from the original command that should be copied to the subcommand.
Trait Implementations§
source§impl Clone for MultipleNodeRoutingInfo
impl Clone for MultipleNodeRoutingInfo
source§fn clone(&self) -> MultipleNodeRoutingInfo
fn clone(&self) -> MultipleNodeRoutingInfo
Returns a copy of the value. Read more
1.0.0 · 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 MultipleNodeRoutingInfo
impl Debug for MultipleNodeRoutingInfo
source§impl PartialEq for MultipleNodeRoutingInfo
impl PartialEq for MultipleNodeRoutingInfo
source§fn eq(&self, other: &MultipleNodeRoutingInfo) -> bool
fn eq(&self, other: &MultipleNodeRoutingInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MultipleNodeRoutingInfo
Auto Trait Implementations§
impl RefUnwindSafe for MultipleNodeRoutingInfo
impl Send for MultipleNodeRoutingInfo
impl Sync for MultipleNodeRoutingInfo
impl Unpin for MultipleNodeRoutingInfo
impl UnwindSafe for MultipleNodeRoutingInfo
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