pub trait SingleRustWorkload: RustWorkload {
const FDB_API_VERSION: u32 = foundationdb_sys::FDB_API_VERSION;
// Required method
fn new(name: String, context: WorkloadContext) -> Self;
}Expand description
Automatically implements a WorkloadFactory for a single workload
Provided Associated Constants§
Sourceconst FDB_API_VERSION: u32 = foundationdb_sys::FDB_API_VERSION
const FDB_API_VERSION: u32 = foundationdb_sys::FDB_API_VERSION
The runtime FDB_API_VERSION to use
Required Methods§
Sourcefn new(name: String, context: WorkloadContext) -> Self
fn new(name: String, context: WorkloadContext) -> Self
The implicit WorkloadFactory will call this method uppon each instantiation
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".