pub struct WebFetcher { /* private fields */ }Expand description
Fetches web pages
Implementations§
Source§impl WebFetcher
impl WebFetcher
Sourcepub fn with_config(config: Web2PptConfig) -> Result<Self>
pub fn with_config(config: Web2PptConfig) -> Result<Self>
Create a new web fetcher with custom config
Sourcepub fn fetch_with_url(&self, url: &str) -> Result<(String, String)>
pub fn fetch_with_url(&self, url: &str) -> Result<(String, String)>
Fetch and return both URL and HTML
Sourcepub fn config(&self) -> &Web2PptConfig
pub fn config(&self) -> &Web2PptConfig
Get the config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebFetcher
impl !RefUnwindSafe for WebFetcher
impl Send for WebFetcher
impl Sync for WebFetcher
impl Unpin for WebFetcher
impl !UnwindSafe for WebFetcher
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