Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    policies: &[Policy],
    call: &Call<'_>,
) -> Result<Option<Verdict>, usize>
Expand description

Evaluate the list. Ok(None) means no rule matched (allow); Err(rule) means a rule’s argument guard failed to evaluate, which is fail-closed rather than a pass.