[][src]Struct grin_servers::common::stats::ServerStats

pub struct ServerStats {
    pub peer_count: u32,
    pub chain_stats: ChainStats,
    pub header_stats: Option<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,
}

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: Option<ChainStats>

sync header 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

impl Clone for ServerStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,