Skip to main content

decide

Function decide 

Source
pub fn decide(action: &Action, policy: &Policy) -> Verdict
Expand description

Decide whether action is permitted under policy.

Pure and total: every action yields either Allow (with obligations) or Deny (with a reason). The default, when no rule matches, is Deny(NotAllowed).