1 2 3 4 5 6 7 8 9 10
///! /// Module which defines error which can happen within this crate. use thiserror::Error; /// Error type that describes all possible errors. #[derive(Debug, Error)] pub enum Error { #[error("Prometheus error: {0}")] Prometheus(#[from] prometheus::Error), }