pub struct KetamaHashing { /* private fields */ }Expand description
Weighted Ketama consistent hashing
Trait Implementations§
Source§impl BackendSelection for KetamaHashing
impl BackendSelection for KetamaHashing
Source§type Iter = OwnedNodeIterator
type Iter = OwnedNodeIterator
The BackendIter returned from iter() below.
Source§type Config = KetamaConfig
type Config = KetamaConfig
The configuration type constructing BackendSelection
Source§fn build_with_config(
backends: &BTreeSet<Backend>,
config: &Self::Config,
) -> Self
fn build_with_config( backends: &BTreeSet<Backend>, config: &Self::Config, ) -> Self
Create a BackendSelection from a set of backends and the given configuration. The
default implementation ignores the configuration and simply calls Self::build
Auto Trait Implementations§
impl Freeze for KetamaHashing
impl !RefUnwindSafe for KetamaHashing
impl Send for KetamaHashing
impl Sync for KetamaHashing
impl Unpin for KetamaHashing
impl !UnwindSafe for KetamaHashing
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