CustomHashFunction

Trait CustomHashFunction 

Source
pub trait CustomHashFunction<TKey>: Send + Sync
where TKey: Send + Sync + 'static,
{ // Required method fn hash(&self, key: &TKey, worker_count: usize) -> usize; }
Expand description

Custom hashing behavior for factory routing to workers

Required Methods§

Source

fn hash(&self, key: &TKey, worker_count: usize) -> usize

Hash the key into the space 0..usize

Implementors§