pub trait JobProcessor: TypeUuid {
    type InputT: JobInput + 'static;
    type OutputT: JobOutput + 'static;

    // Required methods
    fn version(&self) -> u32;
    fn run<'a>(
        &'a self,
        context: &'a RunContext<'a, Self::InputT>
    ) -> PipelineResult<Self::OutputT>;

    // Provided method
    fn enumerate_dependencies(
        &self,
        _context: EnumerateDependenciesContext<'_, Self::InputT>
    ) -> PipelineResult<JobEnumeratedDependencies> { ... }
}

Required Associated Types§

source

type InputT: JobInput + 'static

source

type OutputT: JobOutput + 'static

Required Methods§

source

fn version(&self) -> u32

source

fn run<'a>( &'a self, context: &'a RunContext<'a, Self::InputT> ) -> PipelineResult<Self::OutputT>

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§