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

Method get

nodedb-cluster/src/subsystem/health.rs:55–58  ·  view source on GitHub ↗

Retrieve the current health for the named subsystem, or `None` if it has never reported.

(&self, name: &'static str)

Source from the content-addressed store, hash-verified

53 /// Retrieve the current health for the named subsystem, or `None` if
54 /// it has never reported.
55 pub async fn get(&self, name: &'static str) -> Option<SubsystemHealth> {
56 let map = self.inner.read().await;
57 map.get(name).cloned()
58 }
59
60 /// Returns `true` when every registered subsystem reports `Running`.
61 pub async fn all_running(&self) -> bool {

Callers 1

topo_sortFunction · 0.45

Calls 1

readMethod · 0.45

Tested by

no test coverage detected