Struct ord_lmdb_rs::core::EnvBuilder
source · [−]pub struct EnvBuilder { /* private fields */ }
Expand description
Constructs environment with settigs which couldn’t be
changed after opening. By default it tries to create
corresponding dir if it doesn’t exist, use autocreate_dir()
to override that behavior
Implementations
sourceimpl EnvBuilder
impl EnvBuilder
pub fn new() -> EnvBuilder
sourcepub fn flags(self, flags: EnvCreateFlags) -> EnvBuilder
pub fn flags(self, flags: EnvCreateFlags) -> EnvBuilder
Sets environment flags
sourcepub fn max_readers(self, max_readers: usize) -> EnvBuilder
pub fn max_readers(self, max_readers: usize) -> EnvBuilder
Sets max concurrent readers operating on environment
sourcepub fn max_dbs(self, max_dbs: usize) -> EnvBuilder
pub fn max_dbs(self, max_dbs: usize) -> EnvBuilder
Set max number of databases
sourcepub fn map_size(self, map_size: u64) -> EnvBuilder
pub fn map_size(self, map_size: u64) -> EnvBuilder
Sets max environment size, i.e. size in memory/disk of all data
sourcepub fn autocreate_dir(self, autocreate_dir: bool) -> EnvBuilder
pub fn autocreate_dir(self, autocreate_dir: bool) -> EnvBuilder
Sets whetever lmdb-rs
should try to autocreate dir with default
permissions on opening (default is true)
Trait Implementations
sourceimpl Clone for EnvBuilder
impl Clone for EnvBuilder
sourcefn clone(&self) -> EnvBuilder
fn clone(&self) -> EnvBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnvBuilder
impl Debug for EnvBuilder
impl Copy for EnvBuilder
Auto Trait Implementations
impl RefUnwindSafe for EnvBuilder
impl Send for EnvBuilder
impl Sync for EnvBuilder
impl Unpin for EnvBuilder
impl UnwindSafe for EnvBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more