Trait error_stack::IntoReportCompat
source · [−]pub trait IntoReportCompat: Sized {
type Ok;
type Err;
fn into_report(self) -> Result<Self::Ok, Self::Err>;
}Expand description
Compatibility trait to convert from external libraries to Report.
Note: It’s not possible to implement IntoReport or Context on other error libraries’
types as both traits have blanket implementation relying on Error. Thus, implementing either
trait would violate the orphan rule; the upstream crate could implement Error and this would
imply an implementation for IntoReport/Context.
Required Associated Types
Required Methods
Implementations on Foreign Types
sourceimpl<T> IntoReportCompat for Result<T, AnyhowError>
Available on crate feature anyhow only.
impl<T> IntoReportCompat for Result<T, AnyhowError>
Available on crate feature
anyhow only.sourceimpl<T> IntoReportCompat for Result<T, EyreReport>
Available on crate feature eyre only.
impl<T> IntoReportCompat for Result<T, EyreReport>
Available on crate feature
eyre only.