fidl_fuchsia_net_interfaces_ext

Function event_stream_from_state

Source
pub fn event_stream_from_state<I: FieldInterests>(
    interface_state: &StateProxy,
    included_addresses: IncludedAddresses,
) -> Result<impl Stream<Item = Result<EventWithInterest<I>, Error>>, WatcherCreationError>
Expand description

Initialize a watcher with interest in all fields and return its events as a stream.

If included_addresses is All, then all addresses will be returned, not just assigned addresses.