#[non_exhaustive]pub enum CallError {
Transport(TransportError),
Rpc(i32, String, Option<Value>),
}Expand description
Result of a CDP call: either a transport-level failure, or a structured
JSON-RPC error returned by Chrome. Higher layers (the zendriver crate)
map Rpc into the typed ZendriverError::Cdp variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transport(TransportError)
Connection-level failure (see TransportError).
Rpc(i32, String, Option<Value>)
Chrome answered the command with a structured JSON-RPC error. Carries
the JSON-RPC code, message, and optional data payload.
Trait Implementations§
Source§impl Error for CallError
impl Error for CallError
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()
Source§impl From<CallError> for ObserverError
impl From<CallError> for ObserverError
Source§impl From<TransportError> for CallError
impl From<TransportError> for CallError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for CallError
impl !RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnsafeUnpin for CallError
impl !UnwindSafe for CallError
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