pub trait SeqHandler<T, E, H>: Send + Sync {
type Output;
// Required method
fn process<'a, 'h>(
&'a self,
request: T,
next: &'h H,
) -> impl Future<Output = Result<Self::Output, E>> + Send + Captures<(&'a Self, &'h H)>;
}Expand description
Handler aware of continuation. You can think of it
as middleware trait.
Required Associated Types§
Required Methods§
fn process<'a, 'h>( &'a self, request: T, next: &'h H, ) -> impl Future<Output = Result<Self::Output, E>> + Send + Captures<(&'a Self, &'h H)>
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.