pub trait StackResultExt<T, E> {
// Required methods
fn context(self, context: impl Display) -> Result<T, AnyError>;
fn with_context<F, C>(self, context: F) -> Result<T, AnyError>
where F: FnOnce(&E) -> C,
C: Display;
}Expand description
Provides extension methods to add context to StackErrors.
Required 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.