pub enum CdpError {
Connection(String),
ConnectionTimeout,
CommandTimeout {
method: String,
},
Protocol {
code: i64,
message: String,
},
ConnectionClosed,
InvalidResponse(String),
ReconnectFailed {
attempts: u32,
last_error: String,
},
Internal(String),
}Expand description
Errors that can occur during CDP communication.
Variants§
Connection(String)
WebSocket connection could not be established.
ConnectionTimeout
Connection attempt exceeded the configured timeout.
CommandTimeout
A command did not receive a response within the configured timeout.
Protocol
Chrome returned a CDP protocol-level error.
ConnectionClosed
The WebSocket connection was closed unexpectedly.
InvalidResponse(String)
Failed to parse a message received from Chrome.
ReconnectFailed
Reconnection failed after all retry attempts were exhausted.
Fields
Internal(String)
Internal error (e.g., transport task died or channel closed).
Trait Implementations§
Source§impl Error for CdpError
impl Error for CdpError
1.30.0 · 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 UnsafeUnpin 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