Struct redb::Builder

source ·
pub struct Builder { /* private fields */ }

Implementations

The initial amount of usable space in bytes for the database

Databases grow dynamically, so it is generally unnecessary to set this. However, it can be used to avoid runtime overhead caused by resizing the database.

Opens the specified file as a redb database.

  • if the file does not exist, or is an empty file, a new database will be initialized in it
  • if the file is a valid redb database, it will be opened
  • otherwise this function will return an error
Safety

The file referenced by path must not be concurrently modified by any other process

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 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.