Retrieve the current health for the named subsystem, or `None` if it has never reported.
(&self, name: &'static str)
| 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 { |