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

L0-L1 target file size

L2-LN target file size multiplier

rate limiter for background flushes and compactions, bytes/sec, if any

Methods

impl CompactionProfile
[src]

Attempt to determine the best profile automatically, only Linux for now.

Default profile suitable for SSD storage

Slow HDD compaction profile

Trait Implementations

impl Clone for CompactionProfile
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for CompactionProfile
[src]

impl PartialEq for CompactionProfile
[src]

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

This method tests for !=.

impl Debug for CompactionProfile
[src]

Formats the value using the given formatter.

impl Default for CompactionProfile
[src]

Default profile suitable for most storage