[][src]Struct libdb::db::EnvironmentBuilder

pub struct EnvironmentBuilder { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.