Function fdb::select_api_version
source · [−]pub unsafe fn select_api_version(version: i32)
Expand description
Select the version of the client API.
Panic
This will panic if the version is not supported by the implementation of the API.
As only one version can be selected for the lifetime of the process, calling this function more than once will also result in a panic.
Safety
This API is part of FDB client setup.
Warning
When using the multi-version client API, setting an API version that is not supported by a particular client library will prevent that client from being used to connect to the cluster.
In particular, you should not advance the API version of your application after upgrading your client until the cluster has also been upgraded.