#[non_exhaustive]pub enum WebDriverError {
NewSessionError(NewSessionError),
NoSuchElement(String),
NoSuchWindow(String),
NoSuchAlert(String),
Json(Error),
IoError(Error),
Timeout(String),
CmdError(CmdError),
CustomError(String),
}
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.
NewSessionError(NewSessionError)
NoSuchElement(String)
NoSuchWindow(String)
NoSuchAlert(String)
Json(Error)
IoError(Error)
Timeout(String)
CmdError(CmdError)
CustomError(String)
Trait Implementations§
Source§impl Debug for WebDriverError
impl Debug for WebDriverError
Source§impl Display for WebDriverError
impl Display for WebDriverError
Source§impl Error for WebDriverError
impl Error for WebDriverError
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<CmdError> for WebDriverError
impl From<CmdError> for WebDriverError
Source§impl From<Error> for WebDriverError
impl From<Error> for WebDriverError
Source§impl From<Error> for WebDriverError
impl From<Error> for WebDriverError
Source§impl From<NewSessionError> for WebDriverError
impl From<NewSessionError> for WebDriverError
Source§fn from(source: NewSessionError) -> Self
fn from(source: NewSessionError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for WebDriverError
impl From<ParseError> for WebDriverError
Source§fn from(pe: ParseError) -> Self
fn from(pe: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebDriverError
impl !RefUnwindSafe for WebDriverError
impl Send for WebDriverError
impl Sync for WebDriverError
impl Unpin for WebDriverError
impl !UnwindSafe for WebDriverError
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