pub trait OutputHandler: Send + Sync {
// Required methods
fn handle_result(&self, result: &TestResult) -> Result<(), Error>;
fn handle_error(&self, error: &Error) -> Result<(), Error>;
}Expand description
Trait for handling test results output.
Enables dependency injection for different output strategies and easier testing.
Required Methods§
Sourcefn handle_result(&self, result: &TestResult) -> Result<(), Error>
fn handle_result(&self, result: &TestResult) -> Result<(), Error>
Handle a completed test result.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".