pub struct RunOutput { /* private fields */ }
Expand description
The data produced by a Context::run
operation.
Implementations§
Source§impl RunOutput
impl RunOutput
Sourcepub fn timeout(&self) -> bool
pub fn timeout(&self) -> bool
Returns true if the WAF did not have enough time to process all the address data that was being evaluated.
Sourcepub fn keep(&self) -> bool
pub fn keep(&self) -> bool
Returns true if the WAF determined the trace for this request should have its priority overridden to ensure it is not dropped by the sampler.
Sourcepub fn duration(&self) -> Duration
pub fn duration(&self) -> Duration
Returns the total time spent processing the request; excluding bindings overhead (which ought to be trivial).
Sourcepub fn events(&self) -> Option<&Keyed<WafArray>>
pub fn events(&self) -> Option<&Keyed<WafArray>>
Returns the list of events that were produced by this WAF run.
This is only expected to be populated when Context::run
returns RunResult::Match
.
Sourcepub fn actions(&self) -> Option<&Keyed<WafMap>>
pub fn actions(&self) -> Option<&Keyed<WafMap>>
Returns the list of actions that were produced by this WAF run.
This is only expected to be populated when Context::run
returns RunResult::Match
.
Sourcepub fn attributes(&self) -> Option<&Keyed<WafMap>>
pub fn attributes(&self) -> Option<&Keyed<WafMap>>
Returns the list of attributes that were produced by this WAF run, and which should be attached to the surrounding trace.