Skip to main content

RpcEndpointSelector

Trait RpcEndpointSelector 

Source
pub trait RpcEndpointSelector: Send + Sync {
    // Required method
    fn select(
        &self,
        service: &str,
        instances: &[ServiceInstance],
    ) -> Option<RpcEndpoint>;
}
Expand description

Selects RPC endpoints from instances.

Required Methods§

Source

fn select( &self, service: &str, instances: &[ServiceInstance], ) -> Option<RpcEndpoint>

Selects one endpoint.

Implementors§