You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/surrealdb/core/src/kvs/fdb
    
    the code of the file until where you have to start completion: #![cfg(feature = "kv-fdb")]

use crate::err::Error;
use crate::kvs::Check;
use crate::kvs::Key;
use crate::kvs::Val;
use crate::vs::{u64_to_versionstamp, Versionstamp};
use foundationdb::options;
use futures::TryStreamExt;
use std::ops::Range;
use std::sync::Arc;
// We use it to work-around the fact that foundationdb-rs' Transaction
// have incompatible lifetimes for the ca
    
	pub(crate) async fn new(path: &str) -> Result<Datastore, Error> {
		static FDBNET: Lazy<Arc<foundationdb::api::NetworkAutoStop>> =
			Lazy::new(|| Arc::new(unsafe { foundationdb::boot() }));
		let _fdbnet = (*FDBNET).clone();

		match foundationdb::Database::from_path(path) {
			Ok(db) => {
				db.set_option(options::DatabaseOption::TransactionRetryLimit(5)).map_err(|e| {
					Error::Ds(format!("Unable to set transaction retry limit: {}", e))
				})?;
				db.set_option(options::DatabaseOption::TransactionTimeout(5000))
					.map_err(|e| Error::Ds(format!("Unable to set transaction timeout: {}", e)))?;
				db.set_option(options::DatabaseOption::TransactionMaxRetryDelay(500)).map_err(
					|e| Error::Ds(format!("Unable to set transaction max retry delay: {}", e)),
				)?;
				Ok(Datastore {
					db,
					_fdbnet,
				})
			}
			Err(e) => Err(Error::Ds(e.to_string())),
		}
	}