Skip to main content

find_metric_error

Function find_metric_error 

Source
pub fn find_metric_error<'a>(
    error: &'a (dyn Error + 'static),
) -> Option<&'a MetricError>
Expand description

Recover the MetricError from any error chain — after erasure to Box<dyn Error> or wrapping by a consumer. Looks for At<MetricError>, MetricError and one Box layer at every level of source().