Struct grin_servers::common::stats::PeerStats
source · pub struct PeerStats {
pub state: String,
pub addr: String,
pub version: ProtocolVersion,
pub user_agent: String,
pub total_difficulty: u64,
pub height: u64,
pub direction: String,
pub last_seen: DateTime<Utc>,
pub sent_bytes_per_sec: u64,
pub received_bytes_per_sec: u64,
pub capabilities: Capabilities,
}
Expand description
Struct to return relevant information about peers
Fields§
§state: String
Current state of peer
addr: String
Address
version: ProtocolVersion
version running
user_agent: String
Peer user agent string.
total_difficulty: u64
difficulty reported by peer
height: u64
height reported by peer on ping
direction: String
direction
last_seen: DateTime<Utc>
Last time we saw a ping/pong from this peer.
sent_bytes_per_sec: u64
Number of bytes we’ve sent to the peer.
received_bytes_per_sec: u64
Number of bytes we’ve received from the peer.
capabilities: Capabilities
Peer advertised capability flags.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerStats
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnwindSafe for PeerStats
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.