pub struct SlotRange {
pub start: u16,
pub end: u16,
pub primary: NodeInfo,
pub replicas: Vec<NodeInfo>,
}Expand description
A contiguous range of hash slots owned by a primary (with optional replicas).
Fields§
§start: u16Inclusive start slot.
end: u16Inclusive end slot.
primary: NodeInfoPrimary node for this range.
replicas: Vec<NodeInfo>Replica nodes.
Trait Implementations§
impl Eq for SlotRange
impl StructuralPartialEq for SlotRange
Auto Trait Implementations§
impl Freeze for SlotRange
impl RefUnwindSafe for SlotRange
impl Send for SlotRange
impl Sync for SlotRange
impl Unpin for SlotRange
impl UnsafeUnpin for SlotRange
impl UnwindSafe for SlotRange
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