pub trait HistoryStorage: Send + Sync {
// Required methods
fn save(&self, result: &TestResult) -> Result<(), Error>;
fn load_history(&self, limit: usize) -> Result<Vec<TestResult>, Error>;
fn clear_history(&self) -> Result<(), Error>;
}Expand description
Combined trait for storage that supports both saving and loading. Provides cleaner dependency injection than separate traits.
Required Methods§
fn save(&self, result: &TestResult) -> Result<(), Error>
fn load_history(&self, limit: usize) -> Result<Vec<TestResult>, Error>
fn clear_history(&self) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".