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§
Required Methods§
Sourcefn build_executor(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Executor>> + Send
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.