[][src]Trait obsidian::router::Handler

pub trait Handler: Send + Sync + 'static {
#[must_use]    fn call<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context
    ) -> Pin<Box<dyn Future<Output = ContextResult> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn call<'life0, 'async_trait>(
    &'life0 self,
    ctx: Context
) -> Pin<Box<dyn Future<Output = ContextResult> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<T, F> Handler for T where
    T: Fn(Context) -> F + Send + Sync + 'static,
    F: Future<Output = ContextResult> + Send + 'static, 
[src]

Loading content...