pub struct LinkChecker { /* private fields */ }Expand description
A utility for checking the availability and HTTP status of URLs, with optional integration for FlareSolverr to bypass anti-bot challenges.
Implementations§
Source§impl LinkChecker
Implements the core functionality for LinkChecker.
impl LinkChecker
Implements the core functionality for LinkChecker.
Sourcepub async fn close(self) -> Result<()>
pub async fn close(self) -> Result<()>
Close the LinkChecker instance, specifically destroying the FlareSolverr
session if one was active.
Each instance of LinkChecker establishes a new session with the FlareSolverr service.
Sessions must be explicitly destroyed using close when no longer needed.
Accumulating too many active sessions can degrade FlareSolverr performance.
§Returns
An anyhow::Result indicating success or an error if the FlareSolverr
session could not be destroyed.
Sourcepub fn builder() -> LinkCheckerBuilder
pub fn builder() -> LinkCheckerBuilder
Creates a new LinkChecker instance.
Trait Implementations§
Source§impl Clone for LinkChecker
impl Clone for LinkChecker
Source§fn clone(&self) -> LinkChecker
fn clone(&self) -> LinkChecker
Returns a duplicate of the value. Read more
1.0.0 · 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 LinkChecker
impl Debug for LinkChecker
Auto Trait Implementations§
impl Freeze for LinkChecker
impl !RefUnwindSafe for LinkChecker
impl Send for LinkChecker
impl Sync for LinkChecker
impl Unpin for LinkChecker
impl !UnwindSafe for LinkChecker
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