fidl_fuchsia_net_routes_admin

Trait RuleSetV4ProxyInterface

Source
pub trait RuleSetV4ProxyInterface: Send + Sync {
    type AuthenticateForRouteTableResponseFut: Future<Output = Result<BaseRuleSetAuthenticateForRouteTableResult, Error>> + Send;
    type RemoveRuleResponseFut: Future<Output = Result<BaseRuleSetRemoveRuleResult, Error>> + Send;
    type AddRuleResponseFut: Future<Output = Result<RuleSetV4AddRuleResult, Error>> + Send;

    // Required methods
    fn authenticate_for_route_table(
        &self,
        table: u32,
        token: Event,
    ) -> Self::AuthenticateForRouteTableResponseFut;
    fn remove_rule(&self, index: u32) -> Self::RemoveRuleResponseFut;
    fn close(&self) -> Result<(), Error>;
    fn add_rule(
        &self,
        index: u32,
        matcher: &RuleMatcherV4,
        action: &RuleAction,
    ) -> Self::AddRuleResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn authenticate_for_route_table( &self, table: u32, token: Event, ) -> Self::AuthenticateForRouteTableResponseFut

Source

fn remove_rule(&self, index: u32) -> Self::RemoveRuleResponseFut

Source

fn close(&self) -> Result<(), Error>

Source

fn add_rule( &self, index: u32, matcher: &RuleMatcherV4, action: &RuleAction, ) -> Self::AddRuleResponseFut

Implementors§