Trait PolicyTracer

Source
pub trait PolicyTracer {
    // Provided methods
    fn report_applicable(
        &mut self,
        class: PolicyValue,
        policies: impl Iterator<Item = PolicyId>,
    ) { ... }
    fn report_policy_eval_start(&mut self, policy_id: PolicyId) { ... }
    fn report_policy_eval_end(&mut self, value: bool) { ... }
}
Expand description

A tracer used to collect debugging information from the policy engine

Provided Methods§

Source

fn report_applicable( &mut self, class: PolicyValue, policies: impl Iterator<Item = PolicyId>, )

Reports applicable policies of a specific class

Source

fn report_policy_eval_start(&mut self, policy_id: PolicyId)

Report start of a policy evaluation

Source

fn report_policy_eval_end(&mut self, value: bool)

Reports the value of policy after it has been evaluated

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§