Skip to main content

ContinuousTaskFactory

Trait ContinuousTaskFactory 

Source
pub trait ContinuousTaskFactory<TickInput, Context>
where Context: WorkContextProvider,
{ type Item<Work: ScheduledRepeatedWork<TickInput, Context>>: 'static + ScheduledWork<Tick = TickInput, WorkContextProvider = Context> + Send + Sync; // Required method fn new<Work>(work: Work) -> Self::Item<Work> where Work: ScheduledRepeatedWork<TickInput, Context>; }

Required Associated Types§

Source

type Item<Work: ScheduledRepeatedWork<TickInput, Context>>: 'static + ScheduledWork<Tick = TickInput, WorkContextProvider = Context> + Send + Sync

Required Methods§

Source

fn new<Work>(work: Work) -> Self::Item<Work>
where Work: ScheduledRepeatedWork<TickInput, Context>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<C> ContinuousTaskFactory<Tick, C> for TickedContinuousWorkFactory<C>
where C: 'static + WorkContextProvider,

Implementors§