Skip to main content

PostLoopPolicy

Trait PostLoopPolicy 

Source
pub trait PostLoopPolicy: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn evaluate(&self, ctx: &PolicyContext<'_>) -> PolicyVerdict;
}
Expand description

Slot 4: Evaluated after the inner loop exits, before follow-up polling.

Use for cleanup, cooldown, or rate limiting between outer loop iterations.

Required Methods§

Source

fn name(&self) -> &str

Policy identifier for tracing and debugging.

Source

fn evaluate(&self, ctx: &PolicyContext<'_>) -> PolicyVerdict

Evaluate the policy. Returns PolicyVerdict.

Implementors§