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 DiagnosticTotals {
pub recorded_events_total: DiagnosticCount,
pub occurrences_total: DiagnosticCount,
pub history_evictions_total: DiagnosticCount,
pub successes_total: DiagnosticCount,
pub failures_total: DiagnosticCount,
pub unspecified_total: DiagnosticCount,
}

Referenced types: DiagnosticCount

Fixed numeric accounting for one explicitly identified lifetime or refresh scope.

Recent-evidence loss cannot roll back accepted counts. Saturated counts remain explicit lower bounds. Code and event filters never redefine the summary scope.

Fields

recorded_events_total: DiagnosticCount

Accepted recording calls, one per call regardless of occurrence delta.

occurrences_total: DiagnosticCount

Accepted occurrence deltas across all outcomes and codes.

history_evictions_total: DiagnosticCount

Previously retained events owned by this component or context and evicted.

successes_total: DiagnosticCount

Occurrences whose owning operation explicitly succeeded.

failures_total: DiagnosticCount

Occurrences whose owning operation explicitly failed.

unspecified_total: DiagnosticCount

Occurrences without an established operation outcome.

Implementations

impl DiagnosticTotals

impl DiagnosticTotals

Referenced types: DiagnosticTotals

record

pub fn record(&mut self, outcome: DiagnosticOutcome, count: u64)

Referenced types: DiagnosticOutcome, u64

Add one accepted recording call and its observed occurrence delta.

The recording boundary validates the positive delta before updating every applicable scope. This helper does not perform admission or retain evidence.

Trait Implementations

impl Clone for DiagnosticTotals

impl Clone for DiagnosticTotals

Referenced types: Clone, DiagnosticTotals

clone

fn clone(&self) -> DiagnosticTotals

Referenced types: clone, DiagnosticTotals

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticTotals

impl Debug for DiagnosticTotals

Referenced types: Debug, DiagnosticTotals

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl Default for DiagnosticTotals

impl Default for DiagnosticTotals

Referenced types: Default, DiagnosticTotals

default

fn default() -> DiagnosticTotals

Referenced types: default, DiagnosticTotals

impl<'de> Deserialize<'de> for DiagnosticTotals

impl<'de> Deserialize<'de> for DiagnosticTotals

Referenced types: Deserialize, DiagnosticTotals

deserialize

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

Referenced types: deserialize, Result, DiagnosticTotals, Deserializer, Error

impl JsonSchema for DiagnosticTotals

impl JsonSchema for DiagnosticTotals

Referenced types: DiagnosticTotals

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl PartialEq for DiagnosticTotals

impl PartialEq for DiagnosticTotals

Referenced types: PartialEq, DiagnosticTotals

eq

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

Referenced types: eq, DiagnosticTotals, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for DiagnosticTotals

impl Serialize for DiagnosticTotals

Referenced types: Serialize, DiagnosticTotals

serialize

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

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

impl WireValue<Box<DiagnosticTotals>> for DiagnosticTotals

impl WireValue<Box<DiagnosticTotals>> for DiagnosticTotals

Referenced types: WireValue, Box, DiagnosticTotals, DiagnosticTotals

to_wire

fn to_wire(self) -> Result<Box<DiagnosticTotals>, ConversionError>

Referenced types: to_wire, Result, Box, DiagnosticTotals, ConversionError

from_wire

fn from_wire(
value: Box<DiagnosticTotals>,
) -> Result<DiagnosticTotals, ConversionError>

Referenced types: from_wire, Box, DiagnosticTotals, Result, DiagnosticTotals, ConversionError

impl WireValue<DiagnosticTotals> for DiagnosticTotals

impl WireValue<DiagnosticTotals> for DiagnosticTotals

Referenced types: WireValue, DiagnosticTotals, DiagnosticTotals

to_wire

fn to_wire(self) -> Result<DiagnosticTotals, ConversionError>

Referenced types: to_wire, Result, DiagnosticTotals, ConversionError

from_wire

fn from_wire(
value: DiagnosticTotals,
) -> Result<DiagnosticTotals, ConversionError>

Referenced types: from_wire, DiagnosticTotals, Result, DiagnosticTotals, ConversionError

impl Copy for DiagnosticTotals

impl Copy for DiagnosticTotals

Referenced types: Copy, DiagnosticTotals

impl Eq for DiagnosticTotals

impl Eq for DiagnosticTotals

Referenced types: Eq, DiagnosticTotals

impl StructuralPartialEq for DiagnosticTotals

impl StructuralPartialEq for DiagnosticTotals

Referenced types: StructuralPartialEq, DiagnosticTotals