pub struct MetadataStoreStats {
pub total_nodes: usize,
pub by_status: HashMap<NodeStatus, usize>,
pub by_tier: HashMap<NetworkTier, usize>,
pub by_continent: HashMap<String, usize>,
pub queries: u64,
pub updates: u64,
}Expand description
Statistics for MetadataStore
Fields§
§total_nodes: usizeTotal nodes stored
by_status: HashMap<NodeStatus, usize>Nodes by status
by_tier: HashMap<NetworkTier, usize>Nodes by tier
by_continent: HashMap<String, usize>Nodes by continent
queries: u64Total queries performed
updates: u64Total updates performed
Trait Implementations§
Source§impl Clone for MetadataStoreStats
impl Clone for MetadataStoreStats
Source§fn clone(&self) -> MetadataStoreStats
fn clone(&self) -> MetadataStoreStats
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 MetadataStoreStats
impl Debug for MetadataStoreStats
Source§impl Default for MetadataStoreStats
impl Default for MetadataStoreStats
Source§fn default() -> MetadataStoreStats
fn default() -> MetadataStoreStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetadataStoreStats
impl RefUnwindSafe for MetadataStoreStats
impl Send for MetadataStoreStats
impl Sync for MetadataStoreStats
impl Unpin for MetadataStoreStats
impl UnsafeUnpin for MetadataStoreStats
impl UnwindSafe for MetadataStoreStats
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