pub struct SyncStatus {
Show 14 fields pub state: SyncState, pub protocol_version: u8, pub network_id: u64, pub start_block_number: BlockNumber, pub last_imported_block_number: Option<BlockNumber>, pub highest_block_number: Option<BlockNumber>, pub blocks_total: BlockNumber, pub blocks_received: BlockNumber, pub num_peers: usize, pub num_active_peers: usize, pub num_snapshot_chunks: usize, pub snapshot_chunks_done: usize, pub last_imported_old_block_number: Option<BlockNumber>, pub item_sizes: BTreeMap<String, usize>,
}
Expand description

Syncing status and statistics

Fields

state: SyncState

State

protocol_version: u8

Syncing protocol version. That’s the maximum protocol version we connect to.

network_id: u64

The underlying p2p network version.

start_block_number: BlockNumber

BlockChain height for the moment the sync started.

last_imported_block_number: Option<BlockNumber>

Last fully downloaded and imported block number (if any).

highest_block_number: Option<BlockNumber>

Highest block number in the download queue (if any).

blocks_total: BlockNumber

Total number of blocks for the sync process.

blocks_received: BlockNumber

Number of blocks downloaded so far.

num_peers: usize

Total number of connected peers

num_active_peers: usize

Total number of active peers.

num_snapshot_chunks: usize

Snapshot chunks

snapshot_chunks_done: usize

Snapshot chunks downloaded

last_imported_old_block_number: Option<BlockNumber>

Last fully downloaded and imported ancient block number (if any).

item_sizes: BTreeMap<String, usize>

Internal structure item numbers

Implementations

Indicates if snapshot download is in progress

Returns max no of peers to display in informants

Is it doing a major sync?

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.