Skip to main content

Recorder

Trait Recorder 

Source
pub trait Recorder: Send + Sync {
    // Required method
    fn matched(
        &self,
        kind: &EntityKind,
        value: &str,
        placeholder: Option<&str>,
        times: u64,
    );
}
Expand description

Told about the values live traffic matched, e.g. to show recent matches. Not called for restores, or for Engine::scan.

Required Methods§

Source

fn matched( &self, kind: &EntityKind, value: &str, placeholder: Option<&str>, times: u64, )

value matched times times in one request, in order of first appearance. placeholder is what replaced it, or None when it was only found and sent unchanged (Engine::scan_json, audit mode).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§