pub trait ControlPolicy {
// Required method
fn decide(&self, context: ControlContext<'_>) -> ControlDecision;
}Expand description
Policy that decides whether a movement may proceed through a control point.
Required Methods§
Sourcefn decide(&self, context: ControlContext<'_>) -> ControlDecision
fn decide(&self, context: ControlContext<'_>) -> ControlDecision
Evaluate a movement under the supplied context.