pub fn event_stream_from_watcher<I: FidlRouteIpExt>(
    watcher: <I::WatcherMarker as ProtocolMarker>::Proxy,
) -> Result<impl Stream<Item = Result<Event<I>, WatchError>>, WatcherCreationError>
Expand description

Turns the provided watcher client into a Event stream by applying Hanging-Get watch.

Each call to Watch returns a batch of events, which are flattened into a single stream. If an error is encountered while calling Watch or while converting the event, the stream is immediately terminated.