1 2 3 4 5 6
// collector: This trait must be implemented so the HTTPd can export metrics use super::errors::HttpdError; pub trait Collector { fn collect(&self) -> Result<String, HttpdError>; }