Skip to main content

RouteStrategy

Trait RouteStrategy 

Source
pub trait RouteStrategy:
    Send
    + Sync
    + 'static {
    // Required method
    fn route<'a>(
        &self,
        ctx: &RouteCtx<'a>,
        pool: &'a BackendPool,
    ) -> RoutingDecision<'a>;
}

Required Methods§

Source

fn route<'a>( &self, ctx: &RouteCtx<'a>, pool: &'a BackendPool, ) -> RoutingDecision<'a>

Implementors§