pub struct MathCaptchaSolver;Expand description
Solver for arithmetic math captchas.
Implementations§
Trait Implementations§
Source§impl CaptchaSolver for MathCaptchaSolver
impl CaptchaSolver for MathCaptchaSolver
Source§fn method(&self) -> SolveMethod
fn method(&self) -> SolveMethod
The
SolveMethod this solver produces on success.Source§fn supports(&self, kind: &DetectedCaptcha) -> bool
fn supports(&self, kind: &DetectedCaptcha) -> bool
Whether this solver is capable of handling the detected CAPTCHA kind.
The chain uses this to skip solvers that are guaranteed to fail for a
given type, avoiding wasted time and API calls.
Source§fn solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
page: &'life1 Page,
_info: &'life2 CaptchaInfo,
) -> Pin<Box<dyn Future<Output = Result<CaptchaSolveResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn solve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
page: &'life1 Page,
_info: &'life2 CaptchaInfo,
) -> Pin<Box<dyn Future<Output = Result<CaptchaSolveResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Attempt to solve the CAPTCHA visible on
page.Auto Trait Implementations§
impl Freeze for MathCaptchaSolver
impl RefUnwindSafe for MathCaptchaSolver
impl Send for MathCaptchaSolver
impl Sync for MathCaptchaSolver
impl Unpin for MathCaptchaSolver
impl UnsafeUnpin for MathCaptchaSolver
impl UnwindSafe for MathCaptchaSolver
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more