pub trait DelayedWorkFactory<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, delay: Duration) -> Self::Item<Work>
where Work: ScheduledOnceWork<TickInput, Context>;
}Required Associated Types§
type Item<Work: ScheduledOnceWork<TickInput, Context>>: 'static + ScheduledWork<Tick = TickInput, WorkContextProvider = Context> + Send + Sync
Required Methods§
fn new<Work>(work: Work, delay: Duration) -> 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.