Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloud-hypervisor/cloud-hypervisor
/ ops
Method
ops
rate_limiter/src/lib.rs:564–567 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
562
}
563
564
fn ops(&self) -> Option<TokenBucket> {
565
let guard = self.inner.lock().unwrap();
566
guard.ops.clone()
567
}
568
}
569
570
impl PartialEq for RateLimiter {
Callers
3
test_rate_limiter_new
Function · 0.45
test_rate_limiter_manual_replenish
Function · 0.45
test_update_buckets
Function · 0.45
Calls
1
clone
Method · 0.45
Tested by
3
test_rate_limiter_new
Function · 0.36
test_rate_limiter_manual_replenish
Function · 0.36
test_update_buckets
Function · 0.36