fidl_fuchsia_net_routes_ext::rules

Function collect_rules_until_idle

Source
pub async fn collect_rules_until_idle<I: FidlRuleIpExt, C: Extend<InstalledRule<I>> + Default>(
    event_stream: impl Stream<Item = Result<RuleEvent<I>, RuleWatchError>> + Unpin,
) -> Result<C, CollectRulesUntilIdleError<I>>
Expand description

Collects all existing events from the stream, stopping once the idle event is observed.