/// Constructs CryptoMetrics that are enabled if the metrics registry is
/// some.
Constructs CryptoMetrics that are enabled if the metrics registry is
some.
Constructs CryptoMetrics that are enabled if the metrics registry is some .
pub fn new(registry: Option<&MetricsRegistry>) -> Self {
        Self {
            metrics: registry.map(Metrics::new),
        }
    }
pub fn new ( registry : Option < & MetricsRegistry > ) -> Self { Self { metrics : registry . map ( Metrics :: new ) , } }
Constructs CryptoMetrics that are enabled if the metrics registry is
some.
Constructs CryptoMetrics that are enabled if the metrics registry is some .
registry
Option<&MetricsRegistry>