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.
A negative return means the count is unavailable; max_rate then fails
closed with constraint_unverifiable.
Aliased Type§
pub struct InvocationCounter<'a>(/* private fields */);