pub struct NetworkSizeEstimate {
pub timestamp: SystemTime,
pub log2_peers: f64,
pub standard_deviation: f64,
}Expand description
Последняя оценка размера сети, полученная от GNUnet NSE.
Fields§
§timestamp: SystemTimeМомент, к которому относится оценка.
log2_peers: f64Двоичный логарифм числа узлов: 10 означает около тысячи узлов.
standard_deviation: f64Стандартное отклонение оценки, в тех же единицах, что log2_peers.
Implementations§
Source§impl NetworkSizeEstimate
impl NetworkSizeEstimate
Sourcepub fn estimated_peers(self) -> f64
pub fn estimated_peers(self) -> f64
Соответствует GNUNET_NSE_log_estimate_to_n.
Trait Implementations§
Source§impl Clone for NetworkSizeEstimate
impl Clone for NetworkSizeEstimate
Source§fn clone(&self) -> NetworkSizeEstimate
fn clone(&self) -> NetworkSizeEstimate
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 moreimpl Copy for NetworkSizeEstimate
Source§impl Debug for NetworkSizeEstimate
impl Debug for NetworkSizeEstimate
Source§impl PartialEq for NetworkSizeEstimate
impl PartialEq for NetworkSizeEstimate
impl StructuralPartialEq for NetworkSizeEstimate
Auto Trait Implementations§
impl Freeze for NetworkSizeEstimate
impl RefUnwindSafe for NetworkSizeEstimate
impl Send for NetworkSizeEstimate
impl Sync for NetworkSizeEstimate
impl Unpin for NetworkSizeEstimate
impl UnsafeUnpin for NetworkSizeEstimate
impl UnwindSafe for NetworkSizeEstimate
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