pub struct CrawlerBuilder<S: Spider, D>where
D: Downloader,{ /* private fields */ }Implementations§
Source§impl<S: Spider> CrawlerBuilder<S, ReqwestClientDownloader>
impl<S: Spider> CrawlerBuilder<S, ReqwestClientDownloader>
Source§impl<S: Spider, D: Downloader> CrawlerBuilder<S, D>
impl<S: Spider, D: Downloader> CrawlerBuilder<S, D>
pub fn max_concurrent_downloads(self, limit: usize) -> Self
pub fn max_parser_workers(self, limit: usize) -> Self
pub fn max_concurrent_pipelines(self, limit: usize) -> Self
pub fn channel_capacity(self, capacity: usize) -> Self
pub fn downloader(self, downloader: D) -> Self
pub fn add_middleware<M>(self, middleware: M) -> Self
pub fn add_pipeline<P>(self, pipeline: P) -> Self
pub fn with_checkpoint_path<P: AsRef<Path>>(self, path: P) -> Self
pub fn with_checkpoint_interval(self, interval: Duration) -> Self
pub async fn build(self) -> Result<Crawler<S, D::Client>, SpiderError>
Trait Implementations§
Source§impl<S: Spider> Default for CrawlerBuilder<S, ReqwestClientDownloader>
impl<S: Spider> Default for CrawlerBuilder<S, ReqwestClientDownloader>
Auto Trait Implementations§
impl<S, D> Freeze for CrawlerBuilder<S, D>
impl<S, D> !RefUnwindSafe for CrawlerBuilder<S, D>
impl<S, D> Send for CrawlerBuilder<S, D>
impl<S, D> Sync for CrawlerBuilder<S, D>
impl<S, D> Unpin for CrawlerBuilder<S, D>
impl<S, D> UnsafeUnpin for CrawlerBuilder<S, D>where
D: UnsafeUnpin,
S: UnsafeUnpin,
impl<S, D> !UnwindSafe for CrawlerBuilder<S, D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more