pub enum ShardCacheRouteMode {
FullKey,
SessionPrefix,
}Expand description
Shard-routing mode for direct SCNP clients.
Variants§
FullKey
Route every key by its full key hash.
SessionPrefix
Route s:<session>:c:<chunk> keys by the session prefix.
Implementations§
Trait Implementations§
Source§impl Clone for ShardCacheRouteMode
impl Clone for ShardCacheRouteMode
Source§fn clone(&self) -> ShardCacheRouteMode
fn clone(&self) -> ShardCacheRouteMode
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 moreimpl Copy for ShardCacheRouteMode
Source§impl Debug for ShardCacheRouteMode
impl Debug for ShardCacheRouteMode
impl Eq for ShardCacheRouteMode
Source§impl PartialEq for ShardCacheRouteMode
impl PartialEq for ShardCacheRouteMode
Source§fn eq(&self, other: &ShardCacheRouteMode) -> bool
fn eq(&self, other: &ShardCacheRouteMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShardCacheRouteMode
Auto Trait Implementations§
impl Freeze for ShardCacheRouteMode
impl RefUnwindSafe for ShardCacheRouteMode
impl Send for ShardCacheRouteMode
impl Sync for ShardCacheRouteMode
impl Unpin for ShardCacheRouteMode
impl UnsafeUnpin for ShardCacheRouteMode
impl UnwindSafe for ShardCacheRouteMode
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