Struct sled::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);
Methods
impl Config
[src]
fn tree(&self) -> Tree
[src]
create a new Tree
based on this configuration
fn log(&self) -> LockFreeLog
[src]
create a new LockFreeLog
based on this configuration
Trait Implementations
impl Debug for Config
[src]
impl Clone for Config
[src]
fn clone(&self) -> Config
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
impl Deref for Config
[src]
type Target = ConfigInner
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.