SingleRustWorkload

Trait SingleRustWorkload 

Source
pub trait SingleRustWorkload: RustWorkload {
    const FDB_API_VERSION: u32 = 740u32;

    // Required method
    fn new(name: String, context: WorkloadContext) -> Self;
}
Expand description

Automatically implements a WorkloadFactory for a single workload

Provided Associated Constants§

Source

const FDB_API_VERSION: u32 = 740u32

The runtime FDB_API_VERSION to use

Required Methods§

Source

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", so this trait is not object safe.

Implementors§