Skip to main content

RunnableContext

Trait RunnableContext 

Source
pub trait RunnableContext {
    // Required method
    fn run(
        &mut self,
        data: WafMap,
        timeout: Duration,
    ) -> Result<RunResult, RunError>;
}
Expand description

Common waf evaluation interface for Context and Subcontext.

Required Methods§

Source

fn run( &mut self, data: WafMap, timeout: Duration, ) -> Result<RunResult, RunError>

Evaluates the configured ruleset against the provided address data, and returns the result of this evaluation.

§Errors

Returns an error if the WAF encountered an internal error, invalid object, or invalid argument while processing the request.

Implementors§