pub trait RateLimitPolicy<Error>{
// 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§
Sourcefn evaluate(&self, context: &RateLimitContext) -> RateLimitFuture<'_, Error>
fn evaluate(&self, context: &RateLimitContext) -> RateLimitFuture<'_, Error>
Evaluates whether the next call should be delayed.