pub struct HtmlLinkExtractor { /* private fields */ }Expand description
Extracts raw link targets from an already-parsed HTML document.
Implementations§
Trait Implementations§
Source§impl LinkExtractor for HtmlLinkExtractor
impl LinkExtractor for HtmlLinkExtractor
Source§fn extract<'life0, 'life1, 'async_trait>(
&'life0 self,
selector: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExtractedLink>, CrawlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn extract<'life0, 'life1, 'async_trait>(
&'life0 self,
selector: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExtractedLink>, CrawlError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Extracts raw links selected by
selector or the implementation default.Auto Trait Implementations§
impl Freeze for HtmlLinkExtractor
impl RefUnwindSafe for HtmlLinkExtractor
impl Send for HtmlLinkExtractor
impl Sync for HtmlLinkExtractor
impl Unpin for HtmlLinkExtractor
impl UnsafeUnpin for HtmlLinkExtractor
impl UnwindSafe for HtmlLinkExtractor
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