Skip to navigation

Struct Diagnostic Component

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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 DiagnosticComponent { /* private fields */ }

Shared producer registration. Last drop closes it; explicit close fences clones.

Implementations

impl DiagnosticComponent

impl DiagnosticComponent

try_record_lazy

pub fn try_record_lazy<'a>(
    &self,
    make: impl FnOnce() -> Observation<'a>,
) -> Result<RecordOutcome, DiagnosticError>

Record an occurrence delta once. No retry, log, or exporter projection.

close

pub fn close(&self) -> Result<(), DiagnosticError>

Close explicitly; this never resets source totals or classifies recovery.

Trait Implementations

impl Clone for DiagnosticComponent

impl Clone for DiagnosticComponent

clone

fn clone(&self) -> DiagnosticComponent

clone_from

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