pub struct PeerMetrics {
pub received_git_bytes: usize,
pub received_fetch_requests: usize,
pub received_bytes: usize,
pub received_gossip_messages: usize,
pub sent_bytes: usize,
pub sent_fetch_requests: usize,
pub sent_git_bytes: usize,
pub sent_gossip_messages: usize,
pub streams_opened: usize,
pub inbound_connection_attempts: usize,
pub outbound_connection_attempts: usize,
pub disconnects: usize,
}Expand description
Per-peer metrics we track.
Fields§
§received_git_bytes: usize§received_fetch_requests: usize§received_bytes: usize§received_gossip_messages: usize§sent_bytes: usize§sent_fetch_requests: usize§sent_git_bytes: usize§sent_gossip_messages: usize§streams_opened: usize§inbound_connection_attempts: usize§outbound_connection_attempts: usize§disconnects: usizeTrait Implementations§
Source§impl Clone for PeerMetrics
impl Clone for PeerMetrics
Source§fn clone(&self) -> PeerMetrics
fn clone(&self) -> PeerMetrics
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 PeerMetrics
impl Debug for PeerMetrics
Source§impl Default for PeerMetrics
impl Default for PeerMetrics
Source§fn default() -> PeerMetrics
fn default() -> PeerMetrics
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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