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),
MethodNotFound(String),
SubscriptionNameConflict(String),
SubscriptionClosed(SubscriptionClosedError),
RequestTimeout,
MaxSlotsExceeded,
AlreadyStopped,
EmptyAllowList(&'static str),
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.
MethodNotFound(String)Method with that name has not yet been 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.
Attempted to stop server that is already stopped.
EmptyAllowList(&'static str)List passed into set_allowed_origins was empty
Custom(String)Custom error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Errorimpl !UnwindSafe for Error