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
sourceimpl Store
impl Store
sourcepub fn new(config: Config) -> Result<Store, Error>
pub fn new(config: Config) -> Result<Store, Error>
Create a new store with the given configuration
sourcepub fn bucket<'a, K: Key, V: Value<'a>>(
&self,
name: Option<&str>
) -> Result<Bucket<'a, K, V>, Error>
pub fn bucket<'a, K: Key, V: Value<'a>>(
&self,
name: Option<&str>
) -> Result<Bucket<'a, K, V>, Error>
Get a named bucket
Auto Trait Implementations
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnwindSafe for Store
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more