pub struct EnvironmentBuilder { /* private fields */ }Expand description
EnvironmentBuilder is used to configure and open a Berkeley DB environment.
Implementations§
Source§impl EnvironmentBuilder
impl EnvironmentBuilder
Sourcepub fn new() -> EnvironmentBuilder
pub fn new() -> EnvironmentBuilder
Create a new Berkeley DB environment builder.
§Panics
Panics if libdb fails to allocate the DB_ENV struct (e.g. malloc error).
Sourcepub fn open(self) -> Result<Environment, Error>
pub fn open(self) -> Result<Environment, Error>
Open the Berkeley DB Environment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvironmentBuilder
impl RefUnwindSafe for EnvironmentBuilder
impl !Send for EnvironmentBuilder
impl !Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl UnwindSafe for EnvironmentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more