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

A handle to a FDB transaction.

create_transaction method on FdbDatabase can be used to create a FdbTransaction.

Implementations

Return a special-purpose, read-only view of the database (FdbReadTransaction). Reads done using snapshot are known as snapshot reads. Snapshot reads selectively relax FDB’s isolation property, reducing transaction conflicts but making reasoning about concurrency harder.

For more information about how to use snapshot reads correctly, see snapshot reads.

Runs a closure in the context of this FdbTransaction.

Safety

You should not use this API. It exists to support binding tester.

Runs a closure in the context of FdbReadTransaction, derived from FdbTransaction.

Safety

You should not use this API. It exists to support binding tester.

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

Determines whether an error returned by a Transaction or ReadTransaction method is retryable. Waiting on the returned future will return the same error when fatal, or return () for retryable errors. Read more

Gets a value from the database. Read more

Get a list of public network addresses as CString, one for each of the storage servers responsible for storing Key and its associated value. Read more

Gets an estimate for the number of bytes stored in the given range. Read more

Returns the key referenced by the specificed KeySelector. Read more

WARNING: This feature is considered experimental at this time. Read more

Gets an ordered range of keys and values from the database. Read more

Gets a list of keys that can split the given range into (roughly) equally sized chunks based on chunk_size. Read more

Gets the version at which the reads for this Transaction or ReadTransaction will access the database. Read more

Directly sets the version of the database at which to execute reads. Read more

Adds a key to the transaction’s read conflict ranges as if you had read the key. Read more

Adds a range of keys to the transaction’s read conflict ranges as if you had read the range. Read more

Adds a key to the transaction’s write conflict ranges as if you had written the key. Read more

Adds a range of keys to the transaction’s write conflict ranges as if you had cleared the range. Read more

Cancels the Transaction. Read more

Clears a given key from the database.

Clears a range of keys from the database.

Commit this Transaction. Read more

Returns a future that will contain the approximated size of the commit, which is the summation of mutations, read conflict ranges, and write conflict ranges. Read more

Gets the version number at which a successful commit modified the database. Read more

Returns TransactionVersionstamp from which you can get the versionstamp which was used by any versionstamp operations in this transaction. Read more

An atomic operation is a single database command that carries out several logical steps: reading the value of a key, performing a transformation on that value, and writing the result. Read more

Sets the value for a given key.

Creates a watch that will become ready when it reports a change to the value of the specified key. 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.