Trait bigerror::ReportAs

source ·
pub trait ReportAs<T> {
    // Required method
    fn report_as<C: Reportable>(self) -> Result<T, Report<C>>;
}
Expand description

Extends error_stack::IntoReport to allow an implicit E -> Report<C> inference

Required Methods§

source

fn report_as<C: Reportable>(self) -> Result<T, Report<C>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ReportAs<T> for &'static str

source§

fn report_as<C: Reportable>(self) -> Result<T, Report<C>>

source§

impl<T> ReportAs<T> for String

source§

fn report_as<C: Reportable>(self) -> Result<T, Report<C>>

source§

impl<T, E: Context> ReportAs<T> for Result<T, E>

source§

fn report_as<C: Reportable>(self) -> Result<T, Report<C>>

Implementors§