pub struct NetworkHistograms {
pub active: BTreeMap<usize, usize>,
pub passive: BTreeMap<usize, usize>,
pub eager: BTreeMap<usize, usize>,
pub lazy: BTreeMap<usize, usize>,
}
Available on crate feature
test-utils
only.Expand description
Histograms on the distribution of peers in the network.
For each field, the map’s key is the bucket value, and the map’s value is the number of peers that fall into that bucket.
Fields§
§active: BTreeMap<usize, usize>
Distribution of active view (neighbor) counts.
passive: BTreeMap<usize, usize>
Distribution of passive view counts.
eager: BTreeMap<usize, usize>
Distribution of eager peer counts.
lazy: BTreeMap<usize, usize>
Distribution of lazy peer counts.
Trait Implementations§
Source§impl Debug for NetworkHistograms
impl Debug for NetworkHistograms
Source§impl Default for NetworkHistograms
impl Default for NetworkHistograms
Source§fn default() -> NetworkHistograms
fn default() -> NetworkHistograms
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NetworkHistograms
impl RefUnwindSafe for NetworkHistograms
impl Send for NetworkHistograms
impl Sync for NetworkHistograms
impl Unpin for NetworkHistograms
impl UnwindSafe for NetworkHistograms
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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