pub trait StorageTestFixture: Sized + Send {
type Storage: Storage + Send + Sync + 'static;
// Required methods
fn setup() -> impl Future<Output = Self> + Send;
fn storage(&self) -> &Self::Storage;
// Provided method
fn teardown(self) -> impl Future<Output = ()> + Send { ... }
}Expand description
Trait for storage test fixtures.
Required Associated Types§
Required Methods§
Provided Methods§
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.