pub struct BootstrapStats {
pub total_peers: usize,
pub relay_peers: usize,
pub coordinator_peers: usize,
pub average_quality: f64,
pub untested_peers: usize,
}Expand description
Bootstrap cache statistics
Fields§
§total_peers: usizeTotal number of cached peers
relay_peers: usizePeers that support relay
coordinator_peers: usizePeers that support NAT coordination
average_quality: f64Average quality score across all peers
untested_peers: usizeNumber of untested peers
Trait Implementations§
Source§impl Clone for BootstrapStats
impl Clone for BootstrapStats
Source§fn clone(&self) -> BootstrapStats
fn clone(&self) -> BootstrapStats
Returns a duplicate of the value. Read more
1.0.0 · 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 BootstrapStats
impl Debug for BootstrapStats
Source§impl Default for BootstrapStats
impl Default for BootstrapStats
Source§fn default() -> BootstrapStats
fn default() -> BootstrapStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BootstrapStats
impl RefUnwindSafe for BootstrapStats
impl Send for BootstrapStats
impl Sync for BootstrapStats
impl Unpin for BootstrapStats
impl UnsafeUnpin for BootstrapStats
impl UnwindSafe for BootstrapStats
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