Skip to main content

IntoMetricSourceError

Trait IntoMetricSourceError 

Source
pub trait IntoMetricSourceError {
    // Required method
    fn into_metric_source_error(self) -> MetricSourceError;
}
Expand description

Converts any compatible error into a MetricSourceError.

Implemented for all types that are std::error::Error + Send + Sync + 'static, wrapping them in MetricSourceError::SourceError.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> IntoMetricSourceError for T
where T: Error + Send + Sync + 'static,