Trait tower::steer::Picker[][src]

pub trait Picker<S, Req> {
    fn pick(&mut self, r: &Req, services: &[S]) -> usize;
}
This is supported 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