pub trait HandlerExecutor<C, T>: Send + Sync {
type Future<'a>: Future<Output = Result<T>> + Send + 'a
where Self: 'a,
C: 'a,
T: 'a;
// Required methods
fn execute<'a>(&'a self, ctx: C) -> Self::Future<'a>
where C: 'a;
fn is_async(&self) -> bool;
}Expand description
Core trait for handler execution with GAT to support both sync and async
Required Associated Types§
Required Methods§
fn execute<'a>(&'a self, ctx: C) -> Self::Future<'a>where
C: 'a,
fn is_async(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".