pub struct ProximityStats {
pub cache_announces_sent: u64,
pub cache_announces_received: u64,
pub updates_via_proximity: u64,
pub updates_via_subscription: u64,
pub false_positive_forwards: u64,
pub avg_neighbor_cache_size: f32,
}
Fields§
§cache_announces_sent: u64
Number of cache announcements sent
cache_announces_received: u64
Number of cache announcements received
updates_via_proximity: u64
Updates forwarded via proximity (not subscription)
updates_via_subscription: u64
Updates forwarded via subscription
false_positive_forwards: u64
False positives due to hash collisions
avg_neighbor_cache_size: f32
Average number of contracts per neighbor
Trait Implementations§
Source§impl Clone for ProximityStats
impl Clone for ProximityStats
Source§fn clone(&self) -> ProximityStats
fn clone(&self) -> ProximityStats
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 ProximityStats
impl Debug for ProximityStats
Source§impl<'de> Deserialize<'de> for ProximityStats
impl<'de> Deserialize<'de> for ProximityStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProximityStats
impl RefUnwindSafe for ProximityStats
impl Send for ProximityStats
impl Sync for ProximityStats
impl Unpin for ProximityStats
impl UnwindSafe for ProximityStats
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