Struct diem_config::config::StorageConfig[][src]

pub struct StorageConfig {
    pub address: SocketAddr,
    pub backup_service_address: SocketAddr,
    pub dir: PathBuf,
    pub grpc_max_receive_len: Option<i32>,
    pub prune_window: Option<u64>,
    pub timeout_ms: u64,
    pub rocksdb_config: RocksdbConfig,
    pub account_count_migration: bool,
    // some fields omitted
}

Fields

address: SocketAddrbackup_service_address: SocketAddrdir: PathBufgrpc_max_receive_len: Option<i32>prune_window: Option<u64>

None disables pruning. The windows is in number of versions, consider system tps (transaction per second) when calculating proper window.

timeout_ms: u64

Read, Write, Connect timeout for network operations in milliseconds

rocksdb_config: RocksdbConfig

Rocksdb-specific configurations

account_count_migration: bool

If enabled, leaf counts of the children of a JellyfishMerkelTree internal node are written down. This is supposed to be enabled after other aspects of the new release has been confirmed safe. And once enabled, an older node won’t be able to read the state DB, unless the DB is wiped and re-synced.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

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)

recently added

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.