pub struct PeerMetrics { /* private fields */ }
Expand description
Holds metrics related to a peer.
Implementations§
Source§impl PeerMetrics
impl PeerMetrics
Sourcepub fn invalid_messages(&self) -> u64
pub fn invalid_messages(&self) -> u64
Returns the number of invalid messages of the PeerMetrics
.
Sourcepub fn invalid_messages_inc(&self) -> u64
pub fn invalid_messages_inc(&self) -> u64
Increments the number of invalid messages of the PeerMetrics
.
Sourcepub fn new_messages(&self) -> u64
pub fn new_messages(&self) -> u64
Returns the number of new messages of the PeerMetrics
.
Sourcepub fn new_messages_inc(&self) -> u64
pub fn new_messages_inc(&self) -> u64
Increments the number of new messages of the PeerMetrics
.
Sourcepub fn known_messages(&self) -> u64
pub fn known_messages(&self) -> u64
Returns the number of known messages of the PeerMetrics
.
Sourcepub fn known_messages_inc(&self) -> u64
pub fn known_messages_inc(&self) -> u64
Increments the number of known messages 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 messages_received(&self) -> u64
pub fn messages_received(&self) -> u64
Returns the number of received messages of the PeerMetrics
.
Sourcepub fn messages_received_inc(&self) -> u64
pub fn messages_received_inc(&self) -> u64
Increments the number of received messages of the PeerMetrics
.
Sourcepub fn message_requests_received(&self) -> u64
pub fn message_requests_received(&self) -> u64
Returns the number of received messages requests of the PeerMetrics
.
Sourcepub fn message_requests_received_inc(&self) -> u64
pub fn message_requests_received_inc(&self) -> u64
Increments the number of received message 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 messages_sent(&self) -> u64
pub fn messages_sent(&self) -> u64
Returns the number of sent messages of the PeerMetrics
.
Sourcepub fn messages_sent_inc(&self) -> u64
pub fn messages_sent_inc(&self) -> u64
Increments the number of sent messages of the PeerMetrics
.
Sourcepub fn message_requests_sent(&self) -> u64
pub fn message_requests_sent(&self) -> u64
Returns the number of sent message requests of the PeerMetrics
.
Sourcepub fn message_requests_sent_inc(&self) -> u64
pub fn message_requests_sent_inc(&self) -> u64
Increments the number of sent message 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
.
Trait Implementations§
Source§impl Default for PeerMetrics
impl Default for PeerMetrics
Source§fn default() -> PeerMetrics
fn default() -> PeerMetrics
Auto Trait Implementations§
impl !Freeze for PeerMetrics
impl RefUnwindSafe for PeerMetrics
impl Send for PeerMetrics
impl Sync for PeerMetrics
impl Unpin for PeerMetrics
impl UnwindSafe for PeerMetrics
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more