pub trait ErrorContextExt {
// Required method
fn with_context(self, context: ErrorContext) -> ContextualError;
}Expand description
Extension trait for adding context to errors
Required Methods§
Sourcefn with_context(self, context: ErrorContext) -> ContextualError
fn with_context(self, context: ErrorContext) -> ContextualError
Add context to an error