pub trait ErrorContext {
// Required method
fn with_context(&self, operation: &str) -> String;
}Expand description
Trait for generating consistent error messages across the codebase.
Required Methods§
Sourcefn with_context(&self, operation: &str) -> String
fn with_context(&self, operation: &str) -> String
Generate a standardized error message with context.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".