pub trait RouteValidatorProxyInterface: Send + Sync {
    type ValidateResponseFut: Future<Output = Result<RouteValidatorValidateResult, Error>> + Send;
    type RouteResponseFut: Future<Output = Result<RouteValidatorRouteResult, Error>> + Send;

    // Required methods
    fn validate(&self, moniker: &str) -> Self::ValidateResponseFut;
    fn route(
        &self,
        moniker: &str,
        targets: &[RouteTarget],
    ) -> Self::RouteResponseFut;
}

Required Associated Types§

Required Methods§

source

fn validate(&self, moniker: &str) -> Self::ValidateResponseFut

source

fn route( &self, moniker: &str, targets: &[RouteTarget], ) -> Self::RouteResponseFut

Implementors§