Enum jsonrpsee_core::client::error::Error
source · pub enum Error {
Call(ErrorObjectOwned),
Transport(BoxError),
RestartNeeded(Arc<Error>),
ParseError(Error),
InvalidSubscriptionId,
InvalidRequestId(InvalidRequestId),
RequestTimeout,
Custom(String),
HttpNotImplemented,
EmptyBatchRequest(EmptyBatchRequest),
RegisterMethod(RegisterMethodError),
}
Expand description
Error type.
Variants§
Call(ErrorObjectOwned)
JSON-RPC error which can occur when a JSON-RPC call fails.
Transport(BoxError)
Networking error or error on the low-level protocol layer.
RestartNeeded(Arc<Error>)
The background task has been terminated.
ParseError(Error)
Failed to parse the data.
InvalidSubscriptionId
Invalid subscription ID.
InvalidRequestId(InvalidRequestId)
Invalid request ID.
RequestTimeout
Request timeout
Custom(String)
Custom error.
HttpNotImplemented
Not implemented for HTTP clients.
EmptyBatchRequest(EmptyBatchRequest)
Empty batch request.
RegisterMethod(RegisterMethodError)
The error returned when registering a method or subscription failed.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<EmptyBatchRequest> for Error
impl From<EmptyBatchRequest> for Error
source§fn from(source: EmptyBatchRequest) -> Self
fn from(source: EmptyBatchRequest) -> Self
Converts to this type from the input type.
source§impl From<ErrorObject<'static>> for Error
impl From<ErrorObject<'static>> for Error
source§fn from(source: ErrorObjectOwned) -> Self
fn from(source: ErrorObjectOwned) -> Self
Converts to this type from the input type.
source§impl From<InvalidRequestId> for Error
impl From<InvalidRequestId> for Error
source§fn from(source: InvalidRequestId) -> Self
fn from(source: InvalidRequestId) -> Self
Converts to this type from the input type.
source§impl From<RegisterMethodError> for Error
impl From<RegisterMethodError> for Error
source§fn from(source: RegisterMethodError) -> Self
fn from(source: RegisterMethodError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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