# 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]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Default for CompactionProfile`
[src]

#### `fn default() -> CompactionProfile`

Default profile suitable for most storage

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)