pub trait ScheduledWork: WithWorkInputOutput + WithWorkContextProvider {
// Required methods
fn tick(
&mut self,
input: Self::Tick,
context: &mut <Self::WorkContextProvider as WorkContextProvider>::Item<'_>,
) -> WorkResult;
fn on_scheduled_hook(&mut self, tick_input: Self::Tick);
}Required Methods§
fn tick( &mut self, input: Self::Tick, context: &mut <Self::WorkContextProvider as WorkContextProvider>::Item<'_>, ) -> WorkResult
Sourcefn on_scheduled_hook(&mut self, tick_input: Self::Tick)
fn on_scheduled_hook(&mut self, tick_input: Self::Tick)
This hook is called once when the work enters the executor during the first tick after being scheduled.