pub trait MetricExt {
// Required methods
fn container_resource(source: ContainerResourceMetricSource) -> Self;
fn external(source: ExternalMetricSource) -> Self;
fn object(source: ObjectMetricSource) -> Self;
fn pods(source: PodsMetricSource) -> Self;
fn resource(source: ResourceMetricSource) -> Self;
}
Required Methods§
fn container_resource(source: ContainerResourceMetricSource) -> Self
fn external(source: ExternalMetricSource) -> Self
fn object(source: ObjectMetricSource) -> Self
fn pods(source: PodsMetricSource) -> Self
fn resource(source: ResourceMetricSource) -> Self
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.