Skip to main content

check_bucket

Function check_bucket 

Source
fn check_bucket<K, Q>(
    table: &Mutex<HashMap<K, (Instant, f64)>>,
    key: &Q,
    make_key: impl FnOnce() -> K,
    rate: f64,
    burst: f64,
) -> Result
where K: Borrow<Q> + Clone + Eq + Hash, Q: Eq + Hash + ?Sized,