Skip to main content

LocalExecutorFactory

Trait LocalExecutorFactory 

Source
pub trait LocalExecutorFactory {
    type LoadPlan;
    type Executor: LocalExecutor;
    type Error: ClassifiedExecutionError;

    // Required method
    fn load(
        &self,
        plan: &Self::LoadPlan,
        artifacts: &[InputBuffer<'_>],
    ) -> Result<Self::Executor, Self::Error>;
}
Expand description

Factory that loads one exact worker-local executor from verified artifacts.

Required Associated Types§

Source

type LoadPlan

Exact backend-specific load plan.

Source

type Executor: LocalExecutor

Loaded executor type.

Source

type Error: ClassifiedExecutionError

Classified load failure.

Required Methods§

Source

fn load( &self, plan: &Self::LoadPlan, artifacts: &[InputBuffer<'_>], ) -> Result<Self::Executor, Self::Error>

Loads exact artifacts without selecting transport or resource policy.

§Errors

Returns a classified validation, compatibility, native, or cleanup failure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§