pub enum CdpError {
Command {
method: String,
message: String,
},
Json(Error),
Transport(String),
InvalidResponse(String),
}Expand description
Errors produced by the typed CDP layer.
Variants§
Command
The protocol returned an error response.
Json(Error)
JSON serialization or deserialization failed.
Transport(String)
The transport was not able to execute the request.
InvalidResponse(String)
The protocol response did not match the expected shape.
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