[][src]Struct foundationdb::api::FdbApiBuilder

pub struct FdbApiBuilder { /* fields omitted */ }

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

The foundationDB C API can only be initialized once.

foundationdb::api::FdbApiBuilder::default().build().expect("fdb api initialized");

Implementations

impl FdbApiBuilder[src]

pub fn runtime_version(&self) -> i32[src]

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

pub fn set_runtime_version(self, version: i32) -> Self[src]

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

pub fn build(self) -> FdbResult<NetworkBuilder>[src]

Initialize the foundationDB API and returns a NetworkBuilder

Panics

This function will panic if called more than once

Trait Implementations

impl Default for FdbApiBuilder[src]

Auto Trait Implementations

impl RefUnwindSafe for FdbApiBuilder

impl Send for FdbApiBuilder

impl Sync for FdbApiBuilder

impl Unpin for FdbApiBuilder

impl UnwindSafe for FdbApiBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,