Trait Picker

trait Picker<S, Req>

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

Required Methods

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

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

Implementors