fuchsia_inspect::component

Function health

Source
pub fn health() -> Health
Expand description

Returns a handle to the standardized singleton top-level health reporter on each call.

Calling this function installs a health reporting child node below the default inspector’s root node. When using it, consider using the default inspector for all health reporting, for uniformity: fuchsia_inspect::component::inspector().

§Caveats

The health reporting node is created when it is first referenced. It is advisable to reference it as early as possible, so that it could export a STARTING_UP health status while the component is initializing.