pub trait Picker<S, Req> {
    fn pick(&mut self, r: &Req, services: &[S]) -> usize;
}
Available on crate feature steer only.
Expand description

This is how callers of Steer tell it which Service a Req corresponds to.

Required Methods

Return an index into the iterator of Service passed to Steer::new.

Implementors