pub struct Environment { /* private fields */ }
Expand description

Represents LMDB Environment. Should be opened using EnvBuilder

Implementations

Check for stale entries in the reader lock table.

Returns the number of stale slots that were cleared.

Retrieve environment statistics

Sync environment to disk

Sets map size. This can be called after open if no transactions are active in this process.

This one sets only flags which are available for change even after opening, see also get_flags and get_all_flags

Get flags of environment, which could be changed after it was opened use get_all_flags if you need also creation time flags

Get all flags of environment, including which were specified on creation See also get_flags if you’re interested only in modifiable flags

Creates a backup copy in specified file descriptor

Gets file descriptor of this environment

Creates a backup copy in specified path

Creates a new read-write transaction

Use get_reader to get much faster lock-free alternative

Creates a readonly transaction

Opens existing DB

Opens or creates a DB

Opens default DB with specified flags

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.