pub struct Config<File: ManagedFile> { /* private fields */ }
Expand description

A database configuration used to open a database.

Implementations

Creates a new config to open a database located at path.

Returns a default configuration to open a database located at path.

Sets the vault to use for this database.

Sets the chunk cache to use for this database.

Sets the file manager.

Uses the thread_pool provided instead of creating its own. This will allow a single thread pool to manage multiple Roots instances’ transactions.

Opens the database, or creates one if the target path doesn’t exist.

Trait Implementations

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

Performs the conversion.

Performs the conversion.

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.