Trait TestKeyValueStore

Source
pub trait TestKeyValueStore: KeyValueStore {
    // Required method
    async fn new_test_config() -> Result<Self::Config, Self::Error>;

    // Provided method
    async fn new_test_store() -> Result<Self, Self::Error> { ... }
}
Expand description

The functions needed for testing purposes

Required Methods§

Source

async fn new_test_config() -> Result<Self::Config, Self::Error>

Obtains a test config

Provided Methods§

Source

async fn new_test_store() -> Result<Self, Self::Error>

Creates a store for testing purposes

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§