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

Method partial_eq

rate_limiter/src/lib.rs:550–555  ·  view source on GitHub ↗
(&self, other: &TokenBucket)

Source from the content-addressed store, hash-verified

548 // After a restore, we cannot be certain that the last_update field has the same value.
549 #[allow(dead_code)]
550 fn partial_eq(&self, other: &TokenBucket) -> bool {
551 (other.capacity() == self.capacity())
552 && (other.one_time_burst() == self.one_time_burst())
553 && (other.refill_time_ms() == self.refill_time_ms())
554 && (other.budget() == self.budget())
555 }
556 }
557
558 impl RateLimiter {

Callers

nothing calls this directly

Calls 4

capacityMethod · 0.80
one_time_burstMethod · 0.80
refill_time_msMethod · 0.80
budgetMethod · 0.80

Tested by

no test coverage detected