pub enum StrategyOutcome {
Positive(OracleResult),
NoSignal(OracleResult),
Contradictory(OracleResult, f32),
Inapplicable(Cow<'static, str>),
}Expand description
The outcome of running a single strategy, classified for aggregation.
Each variant encodes the raw OracleResult (where applicable) and the weight instruction
to the aggregator.
Variants§
Positive(OracleResult)
Strategy observed a differential supporting existence.
The inner OracleResult carries the confidence score, signals, and severity. Contributes
positively to the aggregated verdict.
NoSignal(OracleResult)
Strategy ran but produced no actionable differential.
Includes: technique didn’t fire, server normalised responses uniformly, or responses were unstable across samples. Contributes zero evidence to aggregation.
Contradictory(OracleResult, f32)
Strategy observed a response pattern that actively supports nonexistence.
The f32 is the contradiction weight in [0.0, 1.0]. A weight of 1.0 means the server
is definitively normalised; 0.0 is equivalent to NoSignal. Contributes negatively to
the aggregated verdict proportional to the weight.
Inapplicable(Cow<'static, str>)
Strategy could not run — missing prerequisites or inapplicable context.
The inner string is a human-readable reason, e.g. "target does not support ETags".
Contributes zero evidence to aggregation.
Trait Implementations§
Source§impl Clone for StrategyOutcome
impl Clone for StrategyOutcome
Source§fn clone(&self) -> StrategyOutcome
fn clone(&self) -> StrategyOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more