Function inspect_runtime::publish

source ·
pub fn publish(
    inspector: &Inspector,
    options: PublishOptions
) -> Option<Task<()>>
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 Task may be dropped.

None will be returned on FIDL failures. This includes:

  • Failing to convert a FIDL endpoint for fuchsia.inspect.Tree’s TreeMarker into a stream
  • Failing to connect to the InspectSink protocol
  • Failing to send the connection over the wire