pub fn spawn_tree_server_with_stream(
inspector: Inspector,
settings: TreeServerSendPreference,
stream: TreeRequestStream,
) -> Task<()>
Expand description
Spawns a server for the fuchsia.inspect.Tree
protocol. This protocol returns the VMO
associated with the given tree on get_content
and allows to open linked trees (lazy nodes).
This version of the function accepts a TreeRequestStream
, making it suitable for the
recursive calls performed by the OpenChild
method on fuchsia.inspect.Tree
.
spawn_tree_server
is a more ergonomic option for spawning the root tree.