[][src]Struct crabler::Crabler

pub struct Crabler<T> where
    T: WebScraper
{ /* fields omitted */ }

Methods

impl<T> Crabler<T> where
    T: WebScraper
[src]

pub fn new(scraper: T) -> Self[src]

Create new WebScraper out of given scraper struct

pub async fn navigate<'_, '_>(&'_ mut self, url: &'_ str) -> Result<()>[src]

Schedule scraper to visit given url, this will be executed on one of worker tasks

pub async fn run<'_>(&'_ mut self) -> Result<()>[src]

Run processing loop for the given WebScraper

pub fn start_worker(&self)[src]

Create and start new worker tasks. Worker task will automatically exit after scraper instance is freed.

Auto Trait Implementations

impl<T> !RefUnwindSafe for Crabler<T>

impl<T> Send for Crabler<T> where
    T: Send

impl<T> Sync for Crabler<T> where
    T: Sync

impl<T> Unpin for Crabler<T> where
    T: Unpin

impl<T> !UnwindSafe for Crabler<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.