pub enum CdpError {
Show 13 variants
ConnectionFailed(String),
ConnectionLost,
SendFailed(String),
Protocol {
code: i64,
message: String,
},
Json(Error),
Timeout(Duration),
InvalidMessageId {
expected: u64,
got: u64,
},
InvalidUrl(String),
SessionNotFound(String),
SpawnFailed(String),
NoDebuggingUrl,
ChromiumNotFound,
LaunchTimeout(Duration),
}Expand description
Errors that can occur during CDP communication.
Variants§
ConnectionFailed(String)
WebSocket connection failed.
ConnectionLost
WebSocket connection was lost during operation.
SendFailed(String)
Failed to send a CDP message.
Protocol
CDP protocol error returned by the browser.
Json(Error)
JSON serialization/deserialization error.
Timeout(Duration)
Response timeout.
InvalidMessageId
Invalid message ID in response.
InvalidUrl(String)
Failed to parse WebSocket URL.
SessionNotFound(String)
Session not found.
SpawnFailed(String)
Browser process spawn failed.
NoDebuggingUrl
Failed to parse the debugging URL from browser output.
ChromiumNotFound
Chromium executable not found.
LaunchTimeout(Duration)
Browser launch timeout.
Trait Implementations§
Source§impl Error for CdpError
impl Error for CdpError
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()
Auto Trait Implementations§
impl Freeze for CdpError
impl !RefUnwindSafe for CdpError
impl Send for CdpError
impl Sync for CdpError
impl Unpin for CdpError
impl !UnwindSafe for CdpError
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