pub trait HttpServiceFactory: Sync {
    // Required methods
    fn register(&self) -> Resource;
    fn analyze_types(&self, url: UrlPatternMatchInput) -> bool;
    fn handler_func<'life0, 'async_trait>(
        &'life0 self,
        url: UrlPatternMatchInput,
        req: Request
    ) -> Pin<Box<dyn Future<Output = Responder> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn register(&self) -> Resource

source

fn analyze_types(&self, url: UrlPatternMatchInput) -> bool

source

fn handler_func<'life0, 'async_trait>( &'life0 self, url: UrlPatternMatchInput, req: Request ) -> Pin<Box<dyn Future<Output = Responder> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§