Trait IntoExecutionHandler

Source
pub trait IntoExecutionHandler:
    Sized
    + Send
    + Sync
    + 'static {
    // Provided method
    fn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>
       where Self: ExecutionHandler<J>,
             J: JobType { ... }
}
Expand description

A helper blanket trait for types that might implement ExecutionHandler for multiple JobTypes.

Provided Methods§

Source

fn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>
where Self: ExecutionHandler<J>, J: JobType,

Convert self into a [RawHandler] that can be registered in workers.

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§

Source§

impl<W> IntoExecutionHandler for W
where W: Sized + Send + Sync + 'static,