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 ComponentSnapshot {
pub identity: ComponentIdentity,
pub registered_at: DateTime<Utc>,
pub closed_at: Option<DateTime<Utc>>,
pub lifetime: DiagnosticLifetimeSummary,
pub since_refresh: DiagnosticRefreshSummary,
pub counters: Vec<DiagnosticCounter>,
pub windows: Vec<DiagnosticWindow>,
}

Referenced types: ComponentIdentity, DateTime, Utc, Option, DiagnosticLifetimeSummary, DiagnosticRefreshSummary, Vec, DiagnosticCounter, DiagnosticWindow

One retained row per component registration instance.

Fields

identity: ComponentIdentity

Logical responsibility and registration incarnation.

registered_at: DateTime<Utc>

Source correlation time when the registration was admitted.

closed_at: Option<DateTime<Utc>>

Registration closure; retained summaries remain subject to bounded retention.

lifetime: DiagnosticLifetimeSummary

Whole-component-instance lifetime accounting and source elapsed time.

since_refresh: DiagnosticRefreshSummary

The sole current refresh period, with explicitly scoped current ownership.

counters: Vec<DiagnosticCounter>

Selected lifetime code counters; no latest-message set is retained per code.

windows: Vec<DiagnosticWindow>

Admitted bounded component outcome windows, independent of refresh periods.

Trait Implementations

impl Clone for ComponentSnapshot

impl Clone for ComponentSnapshot

Referenced types: Clone, ComponentSnapshot

clone

fn clone(&self) -> ComponentSnapshot

Referenced types: clone, ComponentSnapshot

clone_from

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

Referenced types: clone_from

impl Debug for ComponentSnapshot

impl Debug for ComponentSnapshot

Referenced types: Debug, ComponentSnapshot

fmt

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

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

impl<'de> Deserialize<'de> for ComponentSnapshot

impl<'de> Deserialize<'de> for ComponentSnapshot

Referenced types: Deserialize, ComponentSnapshot

deserialize

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

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

impl JsonSchema for ComponentSnapshot

impl JsonSchema for ComponentSnapshot

Referenced types: ComponentSnapshot

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 ComponentSnapshot

impl PartialEq for ComponentSnapshot

Referenced types: PartialEq, ComponentSnapshot

eq

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

Referenced types: eq, ComponentSnapshot, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for ComponentSnapshot

impl Serialize for ComponentSnapshot

Referenced types: Serialize, ComponentSnapshot

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<DiagnosticComponentSnapshot>> for ComponentSnapshot

impl WireValue<Box<DiagnosticComponentSnapshot>> for ComponentSnapshot

Referenced types: WireValue, Box, DiagnosticComponentSnapshot, ComponentSnapshot

to_wire

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

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

from_wire

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

Referenced types: from_wire, Box, DiagnosticComponentSnapshot, Result, ComponentSnapshot, ConversionError

impl WireValue<DiagnosticComponentSnapshot> for ComponentSnapshot

impl WireValue<DiagnosticComponentSnapshot> for ComponentSnapshot

Referenced types: WireValue, DiagnosticComponentSnapshot, ComponentSnapshot

to_wire

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

Referenced types: to_wire, Result, DiagnosticComponentSnapshot, ConversionError

from_wire

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

Referenced types: from_wire, DiagnosticComponentSnapshot, Result, ComponentSnapshot, ConversionError

impl Eq for ComponentSnapshot

impl Eq for ComponentSnapshot

Referenced types: Eq, ComponentSnapshot

impl StructuralPartialEq for ComponentSnapshot

impl StructuralPartialEq for ComponentSnapshot

Referenced types: StructuralPartialEq, ComponentSnapshot