pub trait PointHandler {
// Required method
fn on_point(
&mut self,
point: &dyn Point,
watch: Option<&WatchIDRef>,
) -> ControlFlow<()>;
// Provided method
fn on_close(
&mut self,
_: &LkQuery,
_: StopReason,
_total_calls: u64,
_watch_calls: u64,
) { ... }
}
Expand description
Callbacks stored in a [LkSystem] instance.
Is implemented for |p:&dyn Point, watch:Option<&WatchIDRef>, lks: &LkSystem| -> ControlFlow<()> {}