pub struct PeerTokens<'a> {
pub peer_idx: u32,
pub dc: &'a str,
pub rack: &'a str,
pub tokens: &'a [DynToken],
}Expand description
Per-peer token-list shape consumed by the rebuild pass.
peer_idx is the index into the pool’s peer array; tokens
is the token list for that peer. Mirrors the data shape
vnode_update walks but decoupled from the live pool so the
rebuild can be unit-tested.
Fields§
§peer_idx: u32Peer index in the pool’s peer array.
dc: &'a strDatacenter name.
rack: &'a strRack name.
tokens: &'a [DynToken]Peer’s token list.
Trait Implementations§
Source§impl<'a> Clone for PeerTokens<'a>
impl<'a> Clone for PeerTokens<'a>
Source§fn clone(&self) -> PeerTokens<'a>
fn clone(&self) -> PeerTokens<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for PeerTokens<'a>
impl<'a> RefUnwindSafe for PeerTokens<'a>
impl<'a> Send for PeerTokens<'a>
impl<'a> Sync for PeerTokens<'a>
impl<'a> Unpin for PeerTokens<'a>
impl<'a> UnsafeUnpin for PeerTokens<'a>
impl<'a> UnwindSafe for PeerTokens<'a>
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