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§
Sourcefn matched(
&self,
kind: &EntityKind,
value: &str,
placeholder: Option<&str>,
times: u64,
)
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".