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§
Sourcefn select(
&self,
service: &str,
instances: &[ServiceInstance],
) -> Option<RpcEndpoint>
fn select( &self, service: &str, instances: &[ServiceInstance], ) -> Option<RpcEndpoint>
Selects one endpoint.