Skip to main content

UpstreamSelector

Trait UpstreamSelector 

Source
pub trait UpstreamSelector: Send + Sync {
    // Required method
    fn select(
        &self,
        endpoints: &[UpstreamEndpoint],
        health: &[UpstreamHealth],
        attempt: u32,
        now: Instant,
    ) -> Option<usize>;
}

Required Methods§

Source

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".

Implementors§