Struct cdp::CdpError
[−]
[src]
pub struct CdpError<'a> { pub kind: CdpErrorKind, pub message: Cow<'a, str>, pub data: Option<Value>, }
Fields
kind: CdpErrorKind
message: Cow<'a, str>
data: Option<Value>
Methods
impl<'a> CdpError<'a>
[src]
pub fn invalid_message() -> Self
[src]
pub fn must_be_object() -> Self
[src]
pub fn must_have_id() -> Self
[src]
pub fn must_have_method() -> Self
[src]
pub fn method_not_found(method: &str) -> Self
[src]
pub fn invalid_params(message: String) -> Self
[src]
pub fn server_error(message: Cow<'a, str>) -> Self
[src]
pub fn internal_error(message: String) -> Self
[src]
Trait Implementations
impl<'a> Clone for CdpError<'a>
[src]
fn clone(&self) -> CdpError<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for CdpError<'a>
[src]
impl<'a> PartialEq for CdpError<'a>
[src]
fn eq(&self, __arg_0: &CdpError<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CdpError<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Error for CdpError<'a>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more