[][src]Trait wasm_service::Handler

pub trait Handler<E> {
#[must_use]    pub fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 mut Context
    ) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Trait that defines app/service's request handler and router

Required methods

#[must_use]pub fn handle<'life0, 'life1, 'async_trait>(
    &'life0 self,
    ctx: &'life1 mut Context
) -> Pin<Box<dyn Future<Output = Result<(), E>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Implementation of application request handler

Loading content...

Implementors

Loading content...