pub struct Crawler { /* private fields */ }
Implementations§
Source§impl Crawler
impl Crawler
pub async fn new(config: CrawlConfig) -> Result<Self>
pub async fn add_seed(&self, url: Url) -> Result<()>
pub async fn add_seeds(&self, urls: Vec<Url>) -> Result<()>
pub async fn start(self: &Arc<Self>) -> Result<()>
pub async fn get_stats(&self) -> CrawlStats
pub async fn get_results(&self) -> Vec<CrawlResult>
pub async fn stop(&self)
Auto Trait Implementations§
impl Freeze for Crawler
impl !RefUnwindSafe for Crawler
impl Send for Crawler
impl Sync for Crawler
impl Unpin for Crawler
impl !UnwindSafe for Crawler
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