Struct sled::Config [] [src]

pub struct Config { /* fields omitted */ }

Top-level configuration for the system.

Examples

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

Methods

impl Config
[src]

[src]

create a new Tree based on this configuration

[src]

create a new LockFreeLog based on this configuration

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter.

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 Sync for Config
[src]

impl Default for Config
[src]

[src]

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

impl Deref for Config
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Config
[src]

[src]

Mutably dereferences the value.