Skip to main content

DispatchPolicy

Trait DispatchPolicy 

Source
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§

Source

fn decide(&self, context: DispatchContext<'_>) -> DispatchDecision

Return the dispatch decision for context.

Implementors§