pub async fn create_watcher_stream(
provider: &RouterAdvertisementOptionWatcherProviderProxy,
params: &RouterAdvertisementOptionWatcherParams,
) -> Option<Result<impl Stream<Item = Result<OptionWatchStreamItem, OptionWatchStreamError>> + 'static, Error>>
Expand description
Creates an option watcher and a stream of its hanging-get results.
Awaits a probe of the watcher returning (indicating that it has been registered with the netstack) before returning the stream. If the probe fails with ClientChannelClosed, this is interpreted to mean the RouterAdvertisementOptionWatcherProvider protocol is not present. In that event, this returns None. Otherwise, any error encountered is yielded as Some(Err(…)).