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

A Builder with which different versions of the Fdb C API can be initialized

Implementations§

The version of run-time behavior the API is requested to provide.

Must be less than or equal to header_version, foundationdb_sys::FDB_API_VERSION, and should almost always be equal. Language bindings which themselves expose API versioning will usually pass the version requested by the application.

The version of the ABI (application binary interface) that the calling code expects to find in the shared library.

If you are using an FFI, this must correspond to the version of the API you are using as a reference (currently 510). For example, the number of arguments that a function takes may be affected by this value, and an incorrect value is unlikely to yield success.

TODO: it is likely that this should never be changed, and be pinned to the sys crates versions… may be removed.

The API version can only be initialized once in the lifetime of a process

Trait Implementations§

Returns the “default value” for a 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 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.