Skip to main content

DirectiveVerifier

Trait DirectiveVerifier 

Source
pub trait DirectiveVerifier: Send + Sync {
    // Required method
    fn verify(&self, header_value: &str) -> Option<DiagnosticsDirective>;
}
Expand description

Verifies a signed X-Debug-Directive request header into the directive it authorizes, the surgical, single-request delivery channel (docs/05 §3). The signature means a client cannot self-enable verbose diagnostics without the operator’s key (NFR-S3); the directive follows the request to whatever instance handles it. The concrete implementation (HMAC + the token format) lives in a crypto-capable crate behind this seam.

Required Methods§

Source

fn verify(&self, header_value: &str) -> Option<DiagnosticsDirective>

The directive a valid header authorizes, or None if the header is absent, malformed, incorrectly signed, or already expired.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§