Struct pagecache::Config [] [src]

pub struct Config { /* fields omitted */ }

Top-level configuration for the system.

Examples

let _config = sled::Config::default()
    .path("/path/to/data".to_owned())
    .cache_capacity(10_000_000_000)
    .use_compression(true)
    .flush_every_ms(Some(1000))
    .snapshot_after_ops(100_000);

Read-only mode let _config = sled::Config::default() .path("/path/to/data".to_owned()) .read_only(true);

Methods

impl Config
[src]

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

Get

Set

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Get

[src]

Set

[src]

Builder, set

[src]

Returns a default Config

[src]

Set the path of the database

[src]

Get the path of the database

[src]

returns the current snapshot file prefix

[src]

returns the snapshot file paths for this system

[src]

Finalize the configuration.

[src]

Consumes the Config and produces a Log from it.

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Config
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for Config
[src]

impl Default for Config
[src]

[src]

Returns the "default value" for a type. Read more