Trait mz_metrics::rusage::Unit

source ·
trait Unit {
    type Gauge;
    type From;
    type To;

    // Required method
    fn from(value: Self::From) -> Self::To;
}
Expand description

Type for converting values from POSIX to Prometheus.

Required Associated Types§

source

type Gauge

Prometheus gauge

source

type From

Libc type

source

type To

Gauge type.

Required Methods§

source

fn from(value: Self::From) -> Self::To

Convert an actual value.

Object Safety§

This trait is not object safe.

Implementors§