MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / fmt

Method fmt

nodedb-mem/src/governor.rs:45–50  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

43
44impl std::fmt::Debug for GlobalCounter {
45 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
46 f.debug_struct("GlobalCounter")
47 .field("allocated", &self.allocated.load(Ordering::Relaxed))
48 .field("ceiling", &self.ceiling)
49 .finish()
50 }
51}
52
53/// A named budget with an atomic allocated counter.

Callers

nothing calls this directly

Calls 3

fieldMethod · 0.80
finishMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected