fn check_bucket<K>( table: &Mutex<HashMap<K, (Instant, f64)>>, key: K, rate: f64, burst: f64, ) -> Resultwhere K: Eq + Hash,