Skip to main content

ImmediateTaskFactory

Trait ImmediateTaskFactory 

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

Required Associated Types§

Source

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

Required Methods§

Source

fn new<Work>(work: Work) -> Self::Item<Work>
where Work: ScheduledOnceWork<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> ImmediateTaskFactory<Tick, C> for TickedImmediateOnceWorkFactory<C>
where C: 'static + WorkContextProvider,

Source§

type Item<Work: ScheduledOnceWork<Tick, C>> = TickedImmediateOnceWork<Work, C>

Source§

fn new<Work>( work: Work, ) -> <TickedImmediateOnceWorkFactory<C> as ImmediateTaskFactory<Tick, C>>::Item<Work>
where Work: ScheduledOnceWork<Tick, C>,

Implementors§