pub trait CustomHashFunction<TKey>: Send + Syncwhere TKey: Send + Sync + 'static,{ // Required method fn hash(&self, key: &TKey, worker_count: usize) -> usize; }
Custom hashing behavior for factory routing to workers
Hash the key into the space 0..usize