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

Method new

src/models.rs:18–26  ·  view source on GitHub ↗

Add a new() method for easier creation

()

Source from the content-addressed store, hash-verified

16impl Counters {
17 // Add a new() method for easier creation
18 pub fn new() -> Self {
19 Self {
20 requests: AtomicUsize::new(0),
21 success: AtomicUsize::new(0),
22 errors: AtomicUsize::new(0),
23 ratelimits: AtomicUsize::new(0),
24 hits: AtomicUsize::new(0)
25 }
26 }
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected