Trait Picker

pub trait Picker<S, Req>

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

Required Methods

fn pick(&mut self, r: &Req, services: &[S]) -> usize

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

Implementors