fidl_fuchsia_net_routes_ext::rules

Function add_rule

Source
pub async fn add_rule<I: Ip + FidlRuleAdminIpExt>(
    rule_set: &<I::RuleSetMarker as ProtocolMarker>::Proxy,
    index: RuleIndex,
    matcher: RuleMatcher<I>,
    action: RuleAction,
) -> Result<Result<(), RuleSetError>, Error>
Expand description

Dispatches add_rule on either the RuleSetV4 or RuleSetV6 proxy.