pub struct SnapshotCommand {
Show 14 fields pub cache_config: CacheConfig, pub dirs: Directories, pub spec: SpecType, pub pruning: Pruning, pub pruning_history: u64, pub pruning_memory: usize, pub tracing: Switch, pub fat_db: Switch, pub compaction: DatabaseCompactionProfile, pub file_path: Option<String>, pub kind: Kind, pub block_at: BlockId, pub max_round_blocks_to_import: usize, pub snapshot_conf: SnapshotConfiguration,
}
Expand description

Command for snapshot creation or restoration.

Fields

cache_config: CacheConfigdirs: Directoriesspec: SpecTypepruning: Pruningpruning_history: u64pruning_memory: usizetracing: Switchfat_db: Switchcompaction: DatabaseCompactionProfilefile_path: Option<String>kind: Kindblock_at: BlockIdmax_round_blocks_to_import: usizesnapshot_conf: SnapshotConfiguration

Implementations

restore from a snapshot

Take a snapshot from the head of the chain.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 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.