#[repr(u8)]pub enum MsgRouting {
Normal = 0,
LocalNodeOnly = 1,
TokenOwnerLocalRackOnly = 2,
AllNodesLocalRackOnly = 3,
AllNodesAllRacksAllDcs = 4,
}Expand description
Routing override applied to a request.
Mirrors the reference engine’s msg_routing_t. The default
(Normal) honors the configured key-hash routing; the other
variants short-circuit it for diagnostic and special-purpose
paths.
Variants§
Normal = 0
Apply the standard key-hash routing.
LocalNodeOnly = 1
Send to the local node only, ignoring the key hash.
TokenOwnerLocalRackOnly = 2
Apply the key hash but stay within the local rack.
AllNodesLocalRackOnly = 3
Send to every node in the local rack, ignoring the key hash.
AllNodesAllRacksAllDcs = 4
Send to every node in every rack of every datacenter.
Implementations§
Trait Implementations§
Source§impl Clone for MsgRouting
impl Clone for MsgRouting
Source§fn clone(&self) -> MsgRouting
fn clone(&self) -> MsgRouting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MsgRouting
impl Debug for MsgRouting
Source§impl Default for MsgRouting
impl Default for MsgRouting
Source§fn default() -> MsgRouting
fn default() -> MsgRouting
Returns the “default value” for a type. Read more
Source§impl PartialEq for MsgRouting
impl PartialEq for MsgRouting
Source§fn eq(&self, other: &MsgRouting) -> bool
fn eq(&self, other: &MsgRouting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MsgRouting
impl Eq for MsgRouting
impl StructuralPartialEq for MsgRouting
Auto Trait Implementations§
impl Freeze for MsgRouting
impl RefUnwindSafe for MsgRouting
impl Send for MsgRouting
impl Sync for MsgRouting
impl Unpin for MsgRouting
impl UnsafeUnpin for MsgRouting
impl UnwindSafe for MsgRouting
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.