pub type QualityValidator = Arc<dyn Fn(Option<&[u8]>, StatusCode, &str, &str) -> ValidationResult + Send + Sync>;Available on crate feature
parallel_backends only.Expand description
User-supplied quality validator. Called after the built-in scorer for every backend response. Receives the raw HTML bytes, status code, URL, and the backend source name (“primary”, “cdp”, “servo”, “custom”).
Must be Send + Sync so it can be shared across async tasks.
Aliased Type§
pub struct QualityValidator { /* private fields */ }