Trait error_stack::IntoReportCompat
source · pub trait IntoReportCompat: Sized {
type Ok;
type Err;
// Required method
fn into_report(self) -> Result<Self::Ok, Report<Self::Err>>;
}Expand description
Compatibility trait to convert from external libraries to Report.
Note: It’s not possible to implement Context on other error libraries’ types from within
error-stack as the trait has a blanket implementation relying on Error. Thus, implementing
the trait would violate the orphan rule; the upstream crate could implement Error and this
would imply an implementation for Context. This also implies, that it’s not possible to
implement ResultExt from within error-stack.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
source§impl<T> IntoReportCompat for Result<T, Error>
Available on crate feature anyhow only.
impl<T> IntoReportCompat for Result<T, Error>
Available on crate feature
anyhow only.source§impl<T> IntoReportCompat for Result<T, Report>
Available on crate feature eyre only.
impl<T> IntoReportCompat for Result<T, Report>
Available on crate feature
eyre only.