MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / capacity

Method capacity

rate_limiter/src/lib.rs:227–229  ·  view source on GitHub ↗

Returns the capacity of the token bucket.

(&self)

Source from the content-addressed store, hash-verified

225
226 /// Returns the capacity of the token bucket.
227 pub fn capacity(&self) -> u64 {
228 self.size
229 }
230
231 /// Returns the remaining one time burst budget.
232 pub fn one_time_burst(&self) -> u64 {

Callers 3

add_hw_breakpointMethod · 0.80
partial_eqMethod · 0.80
submit_batch_requestsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected