pub struct KeyHashRouter;Expand description
Default router: key hash modulo shards, falling back to the source partition for keyless records (keeps a partition’s keyless records together and the distribution stable).
Trait Implementations§
Source§impl Clone for KeyHashRouter
impl Clone for KeyHashRouter
Source§fn clone(&self) -> KeyHashRouter
fn clone(&self) -> KeyHashRouter
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 KeyHashRouter
impl Debug for KeyHashRouter
Source§impl Default for KeyHashRouter
impl Default for KeyHashRouter
Source§fn default() -> KeyHashRouter
fn default() -> KeyHashRouter
Returns the “default value” for a type. Read more
Source§impl ShardRouter for KeyHashRouter
impl ShardRouter for KeyHashRouter
impl Copy for KeyHashRouter
Auto Trait Implementations§
impl Freeze for KeyHashRouter
impl RefUnwindSafe for KeyHashRouter
impl Send for KeyHashRouter
impl Sync for KeyHashRouter
impl Unpin for KeyHashRouter
impl UnsafeUnpin for KeyHashRouter
impl UnwindSafe for KeyHashRouter
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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