fuchsia_inspect::reader

Function read

Source
pub async fn read<T>(tree: &T) -> Result<DiagnosticsHierarchy, ReaderError>
where T: ReadableTree + Send + Sync,
Expand description

Reads the given ReadableTree into a DiagnosticsHierarchy. This reads versions 1 and 2 of the Inspect Format.