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 JobType
s.
Provided Methods§
Sourcefn handler<J>(self) -> Arc<dyn ExecutionHandlerRaw + Send + Sync>where
Self: ExecutionHandler<J>,
J: JobType,
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.