Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct PredictionMetrics {
pub sample_count: u32,
pub mean: f64,
pub p50: f64,
pub p90: f64,
pub p95: f64,
}

Referenced types: u32, f64

Aggregated statistics for a single metric from profiler data.

Fields

sample_count: u32

Number of samples.

mean: f64

Mean value.

p50: f64

50th percentile (median).

p90: f64

90th percentile.

p95: f64

95th percentile.

Trait Implementations

impl Clone for PredictionMetrics

impl Clone for PredictionMetrics

Referenced types: Clone, PredictionMetrics

clone

fn clone(&self) -> PredictionMetrics

Referenced types: clone, PredictionMetrics

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for PredictionMetrics

impl Debug for PredictionMetrics

Referenced types: Debug, PredictionMetrics

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Referenced types: fmt, Formatter, Result

impl Default for PredictionMetrics

impl Default for PredictionMetrics

Referenced types: Default, PredictionMetrics

default

fn default() -> PredictionMetrics

Referenced types: default, PredictionMetrics

impl<'de> Deserialize<'de> for PredictionMetrics

impl<'de> Deserialize<'de> for PredictionMetrics

Referenced types: Deserialize, PredictionMetrics

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, Error, Deserializer

impl PartialEq for PredictionMetrics

impl PartialEq for PredictionMetrics

Referenced types: PartialEq, PredictionMetrics

eq

fn eq(&self, other: &PredictionMetrics) -> bool

Referenced types: eq, PredictionMetrics, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for PredictionMetrics

impl Serialize for PredictionMetrics

Referenced types: Serialize, PredictionMetrics

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,

Referenced types: serialize, Result, Ok, Error, Serializer

impl StructuralPartialEq for PredictionMetrics

impl StructuralPartialEq for PredictionMetrics

Referenced types: StructuralPartialEq, PredictionMetrics