Struct rkv::Manager

source ·
pub struct Manager<E> { /* private fields */ }
Expand description

A process is only permitted to have one open handle to each Rkv environment. This manager exists to enforce that constraint: don’t open environments directly.

By default, path canonicalization is enabled for identifying RKV instances. This is true by default, because it helps enforce the constraints guaranteed by this manager. However, path canonicalization might crash in some fringe circumstances, so the no-canonicalize-path feature offers the possibility of disabling it. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1531887

When path canonicalization is disabled, you must ensure an RKV environment is always created or retrieved with the same path.

Implementations

Return the open env at path, returning None if it has not already been opened.

Return the open env at path, or create it by calling f.

Return the open env at path with capacity, or create it by calling f.

Return a new Rkv environment from the builder, or create it by calling f.

Tries to close the specified environment. Returns an error when other users of this environment still exist.

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.