pub struct Replicas<T> {
pub hash_range: RangeInclusive<u64>,
pub nodes: Vec<T>,
}Expand description
Replicas contains a hashrange and all nodes that store keys within the given range
The first node in nodes is the primary node, the following nodes are replication nodes
hash_range- range of hashes that are stored on the given nodes. Careful: Multiple hashranges might apply to each node. You need to consider all given Replicas structsnodes- all nodes that store keys with a hash in hash_range
Fields§
§hash_range: RangeInclusive<u64>§nodes: Vec<T>Trait Implementations§
impl<T> StructuralPartialEq for Replicas<T>
Auto Trait Implementations§
impl<T> Freeze for Replicas<T>
impl<T> RefUnwindSafe for Replicas<T>where
T: RefUnwindSafe,
impl<T> Send for Replicas<T>where
T: Send,
impl<T> Sync for Replicas<T>where
T: Sync,
impl<T> Unpin for Replicas<T>where
T: Unpin,
impl<T> UnwindSafe for Replicas<T>where
T: 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