MCPcopy Create free account
hub / github.com/ddd/gpb / Counters

Class Counters

src/models.rs:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6pub const MAX_RETRIES: usize = 1000;
7
8pub struct Counters {
9 pub requests: AtomicUsize,
10 pub success: AtomicUsize,
11 pub errors: AtomicUsize,
12 pub ratelimits: AtomicUsize,
13 pub hits: AtomicUsize
14}
15
16impl Counters {
17 // Add a new() method for easier creation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected