RateLimitPolicy

Trait RateLimitPolicy 

Source
pub trait RateLimitPolicy<Error>
where Self: Send + Sync,
{ // Required method fn evaluate(&self, context: &RateLimitContext) -> RateLimitFuture<'_, Error>; }
Expand description

Strategy that inspects tenant/provider budgets before flows hit upstream token endpoints.

Required Methods§

Source

fn evaluate(&self, context: &RateLimitContext) -> RateLimitFuture<'_, Error>

Evaluates whether the next call should be delayed.

Implementors§