pub struct RingSnapshot {
pub peers: Vec<RingPeer>,
}Expand description
Typed, JSON-serializable view of the whole ring.
Produced by gather_ring_from_pool and served verbatim on
the stats server’s /ring route.
§Examples
use dynomite::admin::cluster_info::RingSnapshot;
let snap = RingSnapshot { peers: Vec::new() };
assert!(snap.peers.is_empty());Fields§
§peers: Vec<RingPeer>One entry per peer the pool knows about.
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
impl Eq for RingSnapshot
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 ==.Source§impl Serialize for RingSnapshot
impl Serialize 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.