pub struct PeerMetrics { /* private fields */ }
Expand description
Holds metrics related to a peer.
Implementations§
Source§impl PeerMetrics
impl PeerMetrics
Sourcepub fn invalid_blocks(&self) -> u64
pub fn invalid_blocks(&self) -> u64
Returns the number of invalid blocks of the PeerMetrics
.
Sourcepub fn invalid_blocks_inc(&self) -> u64
pub fn invalid_blocks_inc(&self) -> u64
Increments the number of invalid blocks of the PeerMetrics
.
Sourcepub fn new_blocks(&self) -> u64
pub fn new_blocks(&self) -> u64
Returns the number of new blocks of the PeerMetrics
.
Sourcepub fn new_blocks_inc(&self) -> u64
pub fn new_blocks_inc(&self) -> u64
Increments the number of new blocks of the PeerMetrics
.
Sourcepub fn known_blocks(&self) -> u64
pub fn known_blocks(&self) -> u64
Returns the number of known blocks of the PeerMetrics
.
Sourcepub fn known_blocks_inc(&self) -> u64
pub fn known_blocks_inc(&self) -> u64
Increments the number of known blocks of the PeerMetrics
.
Sourcepub fn invalid_packets(&self) -> u64
pub fn invalid_packets(&self) -> u64
Returns the number of invalid packets of the PeerMetrics
.
Sourcepub fn invalid_packets_inc(&self) -> u64
pub fn invalid_packets_inc(&self) -> u64
Increments the number of invalid packets of the PeerMetrics
.
Sourcepub fn milestone_requests_received(&self) -> u64
pub fn milestone_requests_received(&self) -> u64
Returns the number of received milestones requests of the PeerMetrics
.
Sourcepub fn milestone_requests_received_inc(&self) -> u64
pub fn milestone_requests_received_inc(&self) -> u64
Increments the number of received milestone requests of the PeerMetrics
.
Sourcepub fn blocks_received(&self) -> u64
pub fn blocks_received(&self) -> u64
Returns the number of received blocks of the PeerMetrics
.
Sourcepub fn blocks_received_inc(&self) -> u64
pub fn blocks_received_inc(&self) -> u64
Increments the number of received blocks of the PeerMetrics
.
Sourcepub fn block_requests_received(&self) -> u64
pub fn block_requests_received(&self) -> u64
Returns the number of received blocks requests of the PeerMetrics
.
Sourcepub fn block_requests_received_inc(&self) -> u64
pub fn block_requests_received_inc(&self) -> u64
Increments the number of received block requests of the PeerMetrics
.
Sourcepub fn heartbeats_received(&self) -> u64
pub fn heartbeats_received(&self) -> u64
Returns the number of received heartbeats of the PeerMetrics
.
Sourcepub fn heartbeats_received_inc(&self) -> u64
pub fn heartbeats_received_inc(&self) -> u64
Increments the number of received heartbeats of the PeerMetrics
.
Sourcepub fn milestone_requests_sent(&self) -> u64
pub fn milestone_requests_sent(&self) -> u64
Returns the number of sent milestone requests of the PeerMetrics
.
Sourcepub fn milestone_requests_sent_inc(&self) -> u64
pub fn milestone_requests_sent_inc(&self) -> u64
Increments the number of sent milestone requests of the PeerMetrics
.
Sourcepub fn blocks_sent(&self) -> u64
pub fn blocks_sent(&self) -> u64
Returns the number of sent blocks of the PeerMetrics
.
Sourcepub fn blocks_sent_inc(&self) -> u64
pub fn blocks_sent_inc(&self) -> u64
Increments the number of sent blocks of the PeerMetrics
.
Sourcepub fn block_requests_sent(&self) -> u64
pub fn block_requests_sent(&self) -> u64
Returns the number of sent block requests of the PeerMetrics
.
Sourcepub fn block_requests_sent_inc(&self) -> u64
pub fn block_requests_sent_inc(&self) -> u64
Increments the number of sent block requests of the PeerMetrics
.
Sourcepub fn heartbeats_sent(&self) -> u64
pub fn heartbeats_sent(&self) -> u64
Returns the number of sent heartbeats of the PeerMetrics
.
Sourcepub fn heartbeats_sent_inc(&self) -> u64
pub fn heartbeats_sent_inc(&self) -> u64
Increments the number of sent heartbeats of the PeerMetrics
.