Struct grin_servers::common::stats::ServerStats
source · pub struct ServerStats {
pub peer_count: u32,
pub chain_stats: ChainStats,
pub header_stats: ChainStats,
pub sync_status: SyncStatus,
pub stratum_stats: StratumStats,
pub peer_stats: Vec<PeerStats>,
pub diff_stats: DiffStats,
pub tx_stats: Option<TxStats>,
pub disk_usage_gb: String,
}
Expand description
Simpler thread-unaware version of above to be populated and returned to consumers might be interested in, such as test results or UI
Fields§
§peer_count: u32
Number of peers
chain_stats: ChainStats
Chain head
header_stats: ChainStats
Header head (may differ from chain head)
sync_status: SyncStatus
Whether we’re currently syncing
stratum_stats: StratumStats
Handle to current stratum server stats
peer_stats: Vec<PeerStats>
Peer stats
diff_stats: DiffStats
Difficulty calculation statistics
tx_stats: Option<TxStats>
Transaction pool statistics
disk_usage_gb: String
Disk usage in GB
Trait Implementations§
source§impl Clone for ServerStats
impl Clone for ServerStats
source§fn clone(&self) -> ServerStats
fn clone(&self) -> ServerStats
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ServerStats
impl RefUnwindSafe for ServerStats
impl Send for ServerStats
impl Sync for ServerStats
impl Unpin for ServerStats
impl UnwindSafe for ServerStats
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.