Struct kv::Store

source ·
pub struct Store {
    pub cfg: Config,
    /* private fields */
}
Expand description

A Store is used to keep data on disk using LMDB

Fields§

§cfg: Config

The config field stores the initial configuration values for the given store

Implementations§

Create a new store with the given configuration

Get a named bucket

Get a named bucket

Create a readonly transaction and pass it to the provided function

Create a writable transaction and pass it to the provided function

Open a readonly transaction

Open a writable transaction

Sync data to disk

Get database statistics

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.