[−][src]Struct libdb::db::EnvironmentBuilder
EnvironmentBuilder
is used to configure and open a Berkeley DB environment.
Methods
impl EnvironmentBuilder
[src]
pub fn new() -> EnvironmentBuilder
[src]
Create a new Berkeley DB environment builder.
Panics
Panics if libdb fails to allocate the DB_ENV struct (e.g. malloc error).
pub fn home<P: AsRef<Path>>(self, home: P) -> Self
[src]
Specify the environment home directory.
pub fn flags(self, flags: Flags) -> Self
[src]
Set the environment flags.
pub fn mode(self, mode: i32) -> Self
[src]
Set the file mode.
pub fn open(self) -> Result<Environment, Error>
[src]
Open the Berkeley DB Environment.
Trait Implementations
impl Drop for EnvironmentBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for EnvironmentBuilder
impl !Send for EnvironmentBuilder
impl !Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl UnwindSafe for EnvironmentBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,