pub trait UpstreamSelector: Send + Sync {
// Required method
fn select(
&self,
endpoints: &[UpstreamEndpoint],
health: &[UpstreamHealth],
attempt: u32,
now: Instant,
) -> Option<usize>;
}Required Methods§
fn select( &self, endpoints: &[UpstreamEndpoint], health: &[UpstreamHealth], attempt: u32, now: Instant, ) -> Option<usize>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".