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: u64Read, Write, Connect timeout for network operations in milliseconds
rocksdb_config: RocksdbConfigRocksdb-specific configurations
account_count_migration: boolIf 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 the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=.
Auto Trait Implementations
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnwindSafe for StorageConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.