Skip to main content

InvocationCounter

Type Alias InvocationCounter 

Source
pub type InvocationCounter<'a> = Box<dyn Fn(&str, i64) -> i64 + 'a>;
Expand description

Callback answering “how many invocations of this cert in this window?” — (cert_id, window_s) -> count. Used by rate-limit constraints.

Aliased Type§

pub struct InvocationCounter<'a>(/* private fields */);