pub enum CdpError {
Protocol {
code: i64,
message: String,
data: Option<String>,
},
ConnectionClosed,
Timeout,
Serialization(Error),
WebSocket(Error),
}Expand description
Errors that can occur when communicating with Chrome via CDP.
Variants§
Protocol
CDP protocol error returned by the browser (contains error code and message).
ConnectionClosed
WebSocket connection was closed.
Timeout
CDP command timed out waiting for a response.
Serialization(Error)
JSON serialization/deserialization error.
WebSocket(Error)
WebSocket transport error.
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 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