[][src]Trait obsidian::middleware::Middleware

pub trait Middleware: Send + Sync + 'static {
#[must_use]    fn handle<'a, 'async_trait>(
        &'a self,
        context: Context,
        ep_executor: EndpointExecutor<'a>
    ) -> Pin<Box<dyn Future<Output = ContextResult> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn handle<'a, 'async_trait>(
    &'a self,
    context: Context,
    ep_executor: EndpointExecutor<'a>
) -> Pin<Box<dyn Future<Output = ContextResult> + Send + 'async_trait>> where
    'a: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl Middleware for Logger[src]

Loading content...