Enum jsonrpsee_types::error::Error [−][src]
pub enum Error {
Show variants
Call(CallError),
Transport(Box<dyn Error + Send + Sync>),
Request(String),
Internal(SendError),
InvalidResponse(Mismatch<String>),
RestartNeeded(String),
ParseError(Error),
InvalidSubscriptionId,
InvalidRequestId,
UnregisteredNotification(String),
DuplicateRequestId,
MethodAlreadyRegistered(String),
SubscriptionNameConflict(String),
SubscriptionClosed(SubscriptionClosedError),
RequestTimeout,
MaxSlotsExceeded,
Custom(String),
}Expand description
Error type.
Variants
Call(CallError)Error that occurs when a call failed.
Networking error or error on the low-level protocol layer.
Request(String)JSON-RPC request error.
Internal(SendError)Frontend/backend channel error.
Invalid response,
RestartNeeded(String)The background task has been terminated.
ParseError(Error)Failed to parse the data.
Invalid subscription ID.
Invalid request ID.
UnregisteredNotification(String)Client received a notification with an unregistered method
A request with the same request ID has already been registered.
MethodAlreadyRegistered(String)Method was already registered.
SubscriptionNameConflict(String)Subscribe and unsubscribe method names are the same.
SubscriptionClosed(SubscriptionClosedError)Subscription got closed.
Request timeout
Configured max number of request slots exceeded.
Custom(String)Custom error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Errorimpl !UnwindSafe for Error