Struct ethcore_util::kvdb::CompactionProfile
[−]
[src]
pub struct CompactionProfile { pub initial_file_size: u64, pub file_size_multiplier: i32, pub write_rate_limit: Option<u64>, }
Compaction profile for the database settings
Fields
initial_file_size: u64
L0-L1 target file size
file_size_multiplier: i32
L2-LN target file size multiplier
write_rate_limit: Option<u64>
rate limiter for background flushes and compactions, bytes/sec, if any
Methods
impl CompactionProfile
[src]
fn auto(db_path: &Path) -> CompactionProfile
Attempt to determine the best profile automatically, only Linux for now.
fn ssd() -> CompactionProfile
Default profile suitable for SSD storage
fn hdd() -> CompactionProfile
Slow HDD compaction profile
Trait Implementations
impl Clone for CompactionProfile
[src]
fn clone(&self) -> CompactionProfile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for CompactionProfile
[src]
impl PartialEq for CompactionProfile
[src]
fn eq(&self, __arg_0: &CompactionProfile) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompactionProfile) -> bool
This method tests for !=
.
impl Debug for CompactionProfile
[src]
impl Default for CompactionProfile
[src]
fn default() -> CompactionProfile
Default profile suitable for most storage