#[non_exhaustive]pub enum MultipleNodeRoutingInfo {
AllNodes,
AllMasters,
MultiSlot((Vec<(Route, Vec<usize>)>, MultiSlotArgPattern)),
}Available on crate feature
cluster only.Expand description
Defines which collection of nodes should receive a request
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AllNodes
Route to all nodes in the clusters
AllMasters
Route to all primaries in the cluster
MultiSlot((Vec<(Route, Vec<usize>)>, MultiSlotArgPattern))
Routes the request to multiple slots.
This variant contains instructions for splitting a multi-slot command (e.g., MGET, MSET) into sub-commands.
Each tuple consists of a Route representing the target node for the subcommand,
and a vector of argument indices from the original command that should be copied to each subcommand.
The MultiSlotArgPattern specifies the pattern of the command’s arguments, indicating how they are organized
(e.g., only keys, key-value pairs, etc).
Trait Implementations§
Source§impl Clone for MultipleNodeRoutingInfo
impl Clone for MultipleNodeRoutingInfo
Source§fn clone(&self) -> MultipleNodeRoutingInfo
fn clone(&self) -> MultipleNodeRoutingInfo
Returns a duplicate 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
impl StructuralPartialEq for MultipleNodeRoutingInfo
Auto Trait Implementations§
impl Freeze for MultipleNodeRoutingInfo
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