Skip to navigation

Struct Origin Recorder

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 OriginRecorder { /* private fields */ }

An operation’s bounded original configuration attribution.

A refresh never invalidates this recorder. Observations update lifetime and current since-refresh totals at recording time while preserving their origin on retained events. Closing the registration remains explicit.

Implementations

impl OriginRecorder

impl OriginRecorder

record_lazy

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

Record one completion with its captured origin and optional projections. The synchronous factory is skipped while collection is disabled.

record_without_projection_lazy

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

Record with captured origin while bypassing optional output projections.

Trait Implementations

impl Clone for OriginRecorder

impl Clone for OriginRecorder

clone

fn clone(&self) -> OriginRecorder

clone_from

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

impl Debug for OriginRecorder

impl Debug for OriginRecorder

fmt

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