ScrapeClient

Trait ScrapeClient 

Source
pub trait ScrapeClient: Send + Sync {
    // Required methods
    fn goto<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        url: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), ScrapeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn find_all<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        search: Locator<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Element>, ScrapeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn disconnect<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), ScrapeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn goto<'life0, 'life1, 'async_trait>( &'life0 mut self, url: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), ScrapeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn find_all<'life0, 'life1, 'async_trait>( &'life0 mut self, search: Locator<'life1>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Element>, ScrapeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Implementations on Foreign Types§

Source§

impl ScrapeClient for Client

Source§

fn goto<'life0, 'life1, 'async_trait>( &'life0 mut self, url: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), ScrapeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn find_all<'life0, 'life1, 'async_trait>( &'life0 mut self, search: Locator<'life1>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Element>, ScrapeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

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

Implementors§