pub enum ChromeError {
NotFound(String),
LaunchFailed(String),
StartupTimeout {
port: u16,
},
HttpError(String),
ParseError(String),
NoActivePort,
NotRunning(String),
Io(Error),
}Expand description
Errors that can occur during Chrome discovery and launch.
Variants§
NotFound(String)
Chrome executable was not found on the system.
LaunchFailed(String)
Chrome process failed to launch.
StartupTimeout
Chrome did not start accepting connections within the timeout.
HttpError(String)
HTTP request to Chrome’s debug endpoint failed.
ParseError(String)
Failed to parse a response from Chrome.
NoActivePort
The DevToolsActivePort file was not found.
NotRunning(String)
No running Chrome instance could be discovered.
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for ChromeError
impl Debug for ChromeError
Source§impl Display for ChromeError
impl Display for ChromeError
Source§impl Error for ChromeError
impl Error for ChromeError
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<ChromeError> for AppError
impl From<ChromeError> for AppError
Source§fn from(e: ChromeError) -> Self
fn from(e: ChromeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChromeError
impl !RefUnwindSafe for ChromeError
impl Send for ChromeError
impl Sync for ChromeError
impl Unpin for ChromeError
impl UnsafeUnpin for ChromeError
impl !UnwindSafe for ChromeError
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