[][src]Trait crabler::WebScraper

pub trait WebScraper {
    fn dispatch_on_html<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        selector: &'life1 str,
        response: Response,
        element: Element
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn dispatch_on_response<'life0, 'async_trait>(
        &'life0 mut self,
        response: Response
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn all_html_selectors(&self) -> Vec<&str>;
fn run<'async_trait>(
        self,
        opts: Opts
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
    where
        Self: 'async_trait
; }

Required methods

fn dispatch_on_html<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    selector: &'life1 str,
    response: Response,
    element: Element
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

fn dispatch_on_response<'life0, 'async_trait>(
    &'life0 mut self,
    response: Response
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn all_html_selectors(&self) -> Vec<&str>

fn run<'async_trait>(
    self,
    opts: Opts
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>> where
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...