pub struct RingSnapshot {
pub entries: Vec<(DynToken, u32)>,
pub generation: u64,
}Expand description
Owned snapshot of the token ring.
Each entry is a (token, owner_peer_idx) pair.
Fields§
§entries: Vec<(DynToken, u32)>Token-to-owner pairs in token order.
generation: u64Monotonic generation counter.
Trait Implementations§
Source§impl Clone for RingSnapshot
impl Clone for RingSnapshot
Source§fn clone(&self) -> RingSnapshot
fn clone(&self) -> RingSnapshot
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 moreSource§impl Debug for RingSnapshot
impl Debug for RingSnapshot
Source§impl Default for RingSnapshot
impl Default for RingSnapshot
Source§fn default() -> RingSnapshot
fn default() -> RingSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for RingSnapshot
impl PartialEq for RingSnapshot
Source§fn eq(&self, other: &RingSnapshot) -> bool
fn eq(&self, other: &RingSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RingSnapshot
impl StructuralPartialEq for RingSnapshot
Auto Trait Implementations§
impl Freeze for RingSnapshot
impl RefUnwindSafe for RingSnapshot
impl Send for RingSnapshot
impl Sync for RingSnapshot
impl Unpin for RingSnapshot
impl UnsafeUnpin for RingSnapshot
impl UnwindSafe for RingSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.