pub struct NetworkReport<PI> {
pub peer_count: usize,
pub peers_without_neighbors: Vec<PI>,
pub histograms: NetworkHistograms,
}
Available on crate feature
test-utils
only.Expand description
A report on the state of a Network
.
Fields§
§peer_count: usize
The number of peers in the network.
peers_without_neighbors: Vec<PI>
List of peers that don’t have any neighbors.
histograms: NetworkHistograms
Histograms of peer distribution metrics.
Implementations§
Source§impl<PI> NetworkReport<PI>
impl<PI> NetworkReport<PI>
Sourcepub fn has_peers_with_no_neighbors(&self) -> bool
pub fn has_peers_with_no_neighbors(&self) -> bool
Returns true
if the network contains peers that have no active neighbors.
Trait Implementations§
Source§impl<PI: Debug> Debug for NetworkReport<PI>
impl<PI: Debug> Debug for NetworkReport<PI>
Auto Trait Implementations§
impl<PI> Freeze for NetworkReport<PI>
impl<PI> RefUnwindSafe for NetworkReport<PI>where
PI: RefUnwindSafe,
impl<PI> Send for NetworkReport<PI>where
PI: Send,
impl<PI> Sync for NetworkReport<PI>where
PI: Sync,
impl<PI> Unpin for NetworkReport<PI>where
PI: Unpin,
impl<PI> UnwindSafe for NetworkReport<PI>where
PI: UnwindSafe,
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