[−][src]Trait eve_rs::Middleware
Required methods
#[must_use]pub fn run_middleware<'life0, 'async_trait>(
&'life0 self,
context: TContext,
next: NextHandler<TContext>
) -> Pin<Box<dyn Future<Output = Result<TContext, Error<TContext>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: TContext,
next: NextHandler<TContext>
) -> Pin<Box<dyn Future<Output = Result<TContext, Error<TContext>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Implementors
impl<TContext> Middleware<TContext> for StaticFileServer where
TContext: 'static + Context + Debug + Send + Sync,
[src]
TContext: 'static + Context + Debug + Send + Sync,
pub fn run_middleware<'life0, 'async_trait>(
&'life0 self,
context: TContext,
next: NextHandler<TContext>
) -> Pin<Box<dyn Future<Output = Result<TContext, Error<TContext>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: TContext,
next: NextHandler<TContext>
) -> Pin<Box<dyn Future<Output = Result<TContext, Error<TContext>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<TData> Middleware<DefaultContext> for DefaultMiddleware<TData> where
TData: Default + Clone + Send + Sync,
[src]
TData: Default + Clone + Send + Sync,
pub fn run_middleware<'life0, 'async_trait>(
&'life0 self,
context: DefaultContext,
next: NextHandler<DefaultContext>
) -> Pin<Box<dyn Future<Output = Result<DefaultContext, Error<DefaultContext>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: DefaultContext,
next: NextHandler<DefaultContext>
) -> Pin<Box<dyn Future<Output = Result<DefaultContext, Error<DefaultContext>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,