pub trait TimerHandler: Send {
// Required method
fn on_timer(
&mut self,
logic: &mut GraphStageLogic,
key: &str,
) -> StreamResult<()>;
}Expand description
Reacts to a stage timer firing; key is the timer’s string key. Installed
via GraphStageLogic::set_timer_handler.
Required Methods§
fn on_timer( &mut self, logic: &mut GraphStageLogic, key: &str, ) -> StreamResult<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".