Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloud-hypervisor/cloud-hypervisor
/ ops
Method
ops
rate_limiter/src/group.rs:317–320 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
315
}
316
317
fn ops(&self) -> Option<TokenBucket> {
318
let guard = self.inner.rate_limiter.inner.lock().unwrap();
319
guard.ops.clone()
320
}
321
}
322
323
#[test]
Callers
2
test_rate_limiter_group_new
Function · 0.45
test_rate_limiter_group_manual_replenish
Function · 0.45
Calls
1
clone
Method · 0.45
Tested by
2
test_rate_limiter_group_new
Function · 0.36
test_rate_limiter_group_manual_replenish
Function · 0.36