ExecutorBuilder

Trait ExecutorBuilder 

Source
pub trait ExecutorBuilder<State>: Send {
    type Executor: Component;

    // Required method
    fn build_executor(
        self,
        ctx: &BuilderContext<State>,
    ) -> impl Future<Output = Result<Self::Executor>> + Send;
}
Expand description

Builder for executor components

Required Associated Types§

Source

type Executor: Component

The executor component type

Required Methods§

Source

fn build_executor( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::Executor>> + Send

Build the executor component

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§