Struct openethereum::snapshot::SnapshotCommand
source · [−]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: CacheConfig
dirs: Directories
spec: SpecType
pruning: Pruning
pruning_history: u64
pruning_memory: usize
tracing: Switch
fat_db: Switch
compaction: DatabaseCompactionProfile
file_path: Option<String>
kind: Kind
block_at: BlockId
max_round_blocks_to_import: usize
snapshot_conf: SnapshotConfiguration
Implementations
sourceimpl SnapshotCommand
impl SnapshotCommand
fn start_service(self) -> Result<ClientService, String>
sourcepub fn take_snapshot(self) -> Result<(), String>
pub fn take_snapshot(self) -> Result<(), String>
Take a snapshot from the head of the chain.
Trait Implementations
sourceimpl Debug for SnapshotCommand
impl Debug for SnapshotCommand
sourceimpl PartialEq<SnapshotCommand> for SnapshotCommand
impl PartialEq<SnapshotCommand> for SnapshotCommand
sourcefn eq(&self, other: &SnapshotCommand) -> bool
fn eq(&self, other: &SnapshotCommand) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SnapshotCommand) -> bool
fn ne(&self, other: &SnapshotCommand) -> bool
This method tests for !=
.
impl StructuralPartialEq for SnapshotCommand
Auto Trait Implementations
impl RefUnwindSafe for SnapshotCommand
impl Send for SnapshotCommand
impl Sync for SnapshotCommand
impl Unpin for SnapshotCommand
impl UnwindSafe for SnapshotCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more