mz_metrics::rusage

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§