Skip to main content

InvokedTaskFactory

Trait InvokedTaskFactory 

Source
pub trait InvokedTaskFactory<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> InvokedTaskFactory<Tick, C> for TickedInvokedWorkFactory<C>
where C: 'static + WorkContextProvider,

Source§

type Item<Work: ScheduledRepeatedWork<Tick, C>> = TickedInvokedWork<Work, C>

Source§

fn new<Work>( work: Work, ) -> <TickedInvokedWorkFactory<C> as InvokedTaskFactory<Tick, C>>::Item<Work>
where Work: ScheduledRepeatedWork<Tick, C>,

Implementors§