pub struct WebFetcher { /* private fields */ }Expand description
Cloneable public-web fetcher.
Implementations§
Source§impl WebFetcher
impl WebFetcher
Sourcepub fn new(limits: FetchLimits) -> Result<Self>
pub fn new(limits: FetchLimits) -> Result<Self>
Constructs a fetcher after validating nonzero limits.
Sourcepub async fn fetch(&self, value: &str) -> Result<FetchedPage>
pub async fn fetch(&self, value: &str) -> Result<FetchedPage>
Fetches one public HTTP(S) URL and returns bounded readable text.
Trait Implementations§
Source§impl Clone for WebFetcher
impl Clone for WebFetcher
Source§fn clone(&self) -> WebFetcher
fn clone(&self) -> WebFetcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebFetcher
impl Debug for WebFetcher
Auto Trait Implementations§
impl Freeze for WebFetcher
impl RefUnwindSafe for WebFetcher
impl Send for WebFetcher
impl Sync for WebFetcher
impl Unpin for WebFetcher
impl UnsafeUnpin 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