[][src]Trait quick_crawler::RequestHandler

pub trait RequestHandler: Send + Sync + 'static {
    fn call<'a>(
        &'a self,
        config: RequestHandlerConfig
    ) -> BoxFuture<'a, Result<String, QuickCrawlerError>>; }

Required methods

fn call<'a>(
    &'a self,
    config: RequestHandlerConfig
) -> BoxFuture<'a, Result<String, QuickCrawlerError>>

Invoke the endpoint within the given context

Loading content...

Implementors

impl<F: Send + Sync + 'static, Fut> RequestHandler for F where
    F: Fn(RequestHandlerConfig) -> Fut,
    Fut: Future<Output = Result<String, QuickCrawlerError>> + Send + 'static, 
[src]

Loading content...