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