pub fn publish(
inspector: &Inspector,
options: PublishOptions,
) -> Option<PublishedInspectController>Expand description
Spawns a server handling fuchsia.inspect.Tree requests and a handle
to the fuchsia.inspect.Tree is published using fuchsia.inspect.InspectSink.
Whenever the client wishes to stop publishing Inspect, the Controller may be dropped.
None will be returned on FIDL failures. This includes:
- Failing to convert a FIDL endpoint for
fuchsia.inspect.Tree’sTreeMarkerinto a stream - Failing to connect to the
InspectSinkprotocol - Failing to send the connection over the wire