pub struct RingConfig<BH: BuildHasher> {
pub virtual_node_base_count: usize,
pub build_hasher: BH,
}Expand description
Settings used to construct a ConsistentRing.
Fields§
§virtual_node_base_count: usizeNumber of virtual nodes created for a physical node with weight 1.
Must be greater than zero. 50 is an illustrative starting point;
measure placement with representative keys and tune for your cluster.
build_hasher: BHHash builder used for both keys and virtual node identifiers.
Use a named algorithm with a fixed seed for shared or persisted rings;
DefaultHasher has no stable output guarantee across Rust releases.
Trait Implementations§
Source§impl<BH: Clone + BuildHasher> Clone for RingConfig<BH>
impl<BH: Clone + BuildHasher> Clone for RingConfig<BH>
Auto Trait Implementations§
impl<BH> Freeze for RingConfig<BH>where
BH: Freeze,
impl<BH> RefUnwindSafe for RingConfig<BH>where
BH: RefUnwindSafe,
impl<BH> Send for RingConfig<BH>where
BH: Send,
impl<BH> Sync for RingConfig<BH>where
BH: Sync,
impl<BH> Unpin for RingConfig<BH>where
BH: Unpin,
impl<BH> UnsafeUnpin for RingConfig<BH>where
BH: UnsafeUnpin,
impl<BH> UnwindSafe for RingConfig<BH>where
BH: UnwindSafe,
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