Trait JobProcessor

Source
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§

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.

Implementors§