pub trait ChainError {
// Required method
fn chain_error<C>(self, context: C) -> StrError
where C: IntoChained;
}
Expand description
Trait providing chain_error
for
converting an error of any type to a StrError
.
See crate level documentation for usage examples.
Required Methods§
Sourcefn chain_error<C>(self, context: C) -> StrErrorwhere
C: IntoChained,
fn chain_error<C>(self, context: C) -> StrErrorwhere
C: IntoChained,
Convert an error of any type to a StrError
, adding
context.
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.