pub trait DispatchPolicy {
// Required method
fn decide(&self, context: DispatchContext<'_>) -> DispatchDecision;
}Expand description
Policy that decides whether a route should dispatch a vehicle.
Required Methods§
Sourcefn decide(&self, context: DispatchContext<'_>) -> DispatchDecision
fn decide(&self, context: DispatchContext<'_>) -> DispatchDecision
Return the dispatch decision for context.