Enum ethers_providers::IpcError
source · pub enum IpcError {
JsonError(Error),
IoError(Error),
JsonRpcError(JsonRpcError),
ChannelError(String),
RequestCancelled(RecvError),
ServerExit,
}
Available on crate feature
ipc
and (Unix or Windows) only.Expand description
Error thrown when sending or receiving an IPC message.
Variants§
JsonError(Error)
Thrown if deserialization failed
IoError(Error)
std IO error forwarding.
JsonRpcError(JsonRpcError)
Server responded to the request with a valid JSON-RPC error response
ChannelError(String)
Internal channel failed
RequestCancelled(RecvError)
Listener for request result is gone
ServerExit
IPC server exited
Trait Implementations§
source§impl Error for IpcError
impl Error for IpcError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<IpcError> for ProviderError
impl From<IpcError> for ProviderError
source§impl From<JsonRpcError> for IpcError
impl From<JsonRpcError> for IpcError
source§fn from(source: JsonRpcError) -> Self
fn from(source: JsonRpcError) -> Self
Converts to this type from the input type.
source§impl RpcError for IpcError
impl RpcError for IpcError
source§fn as_error_response(&self) -> Option<&JsonRpcError>
fn as_error_response(&self) -> Option<&JsonRpcError>
Access an underlying JSON-RPC error (if any) Read more
source§fn as_serde_error(&self) -> Option<&Error>
fn as_serde_error(&self) -> Option<&Error>
Access an underlying
serde_json
error (if any) Read moresource§fn is_error_response(&self) -> bool
fn is_error_response(&self) -> bool
Returns
true
if the underlying error is a JSON-RPC error responsesource§fn is_serde_error(&self) -> bool
fn is_serde_error(&self) -> bool
Returns
true
if the underlying error is a serde_json (de)serialization
error. This method can be used to identifyAuto Trait Implementations§
impl !RefUnwindSafe for IpcError
impl Send for IpcError
impl Sync for IpcError
impl Unpin for IpcError
impl !UnwindSafe for IpcError
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