pub trait RingHasherTrait {
// Required method
fn digest(&self, data: &str) -> Result<u64>;
}Expand description
A trait that defines the behavior of a hashing function used in the consistent hashing ring.
Implementors of this trait must provide a digest method that takes a string input
and returns a 64-bit hash value. This hash value is used to determine the placement
of keys and nodes in the consistent hashing ring.