#[non_exhaustive]pub enum ImpervaError {
CaptchaRequired {
kind: CaptchaKind,
},
CaptchaSolver(Box<dyn Error + Send + Sync>),
Interception(InterceptionError),
Call(CallError),
JsError(String),
}Expand description
Error returned by ImpervaBypass operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CaptchaRequired
CAPTCHA detected, but no on_captcha solver was registered.
Fields
§
kind: CaptchaKindCaptchaSolver(Box<dyn Error + Send + Sync>)
User-supplied CAPTCHA solver returned an error.
Interception(InterceptionError)
Fetch-domain interception hook failed at startup (only when
ImpervaBypass::with_interception was set).
Call(CallError)
CDP transport / call error.
JsError(String)
In-page evaluator raised or returned an unexpected payload shape.
Trait Implementations§
Source§impl Debug for ImpervaError
impl Debug for ImpervaError
Source§impl Display for ImpervaError
impl Display for ImpervaError
Source§impl Error for ImpervaError
impl Error for ImpervaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CallError> for ImpervaError
impl From<CallError> for ImpervaError
Source§impl From<InterceptionError> for ImpervaError
impl From<InterceptionError> for ImpervaError
Source§fn from(source: InterceptionError) -> Self
fn from(source: InterceptionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ImpervaError
impl !RefUnwindSafe for ImpervaError
impl !UnwindSafe for ImpervaError
impl Send for ImpervaError
impl Sync for ImpervaError
impl Unpin for ImpervaError
impl UnsafeUnpin for ImpervaError
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