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

FdbTenant provides APIs for transactionally interacting with Tenants.

The simplest correct programs using tentants will make use of the run and read methods. run will call commit after the user code has been executed.

A handle to FDB tentant. All reads and writes to the tenant are transactional.

A FdbTenant can be created using open_tenant method.

Implementations

Creates a FdbTransaction that operates on this FdbTenant.

Returns the name of this Tenant.

Runs a closure in the context that takes a FdbTransaction.

Note

The closure FnMut: FnMut(FdbTransaction) -> Fut will run multiple times (retry) when certain errors are encountered. Therefore the closure should be prepared to be called more than once. This consideration means that the closure should use caution when modifying state.

Runs a closure in the context that takes a FdbReadTransaction.

Note

The closure F: FnMut(FdbReadTransaction) -> Fut will run multiple times (retry) when certain errors are encountered. Therefore the closure should be prepared to be called more than once. This consideration means that the closure should use caution when modifying state.

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

Executes the destructor for this type. 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.