[][src]Trait eve_rs::Middleware

pub trait Middleware<TContext: Context + Debug + Send + Sync> {
#[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
; }

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]

Loading content...

Implementors

impl<TContext> Middleware<TContext> for StaticFileServer where
    TContext: 'static + Context + Debug + Send + Sync
[src]

impl<TData> Middleware<DefaultContext> for DefaultMiddleware<TData> where
    TData: Default + Clone + Send + Sync
[src]

Loading content...