Enum jsonrpsee_http_server::Error [−][src]
pub enum Error {}Show variants
Call(CallError), Transport(Box<dyn Error + 'static + Sync + Send, Global>), Request(String), Internal(SendError), InvalidResponse(Mismatch<String>), RestartNeeded(String), ParseError(Error), InvalidSubscriptionId, InvalidRequestId, UnregisteredNotification(String), DuplicateRequestId, MethodAlreadyRegistered(String), SubscriptionNameConflict(String), 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.
Request timeout
Configured max number of request slots exceeded.
Custom(String)
Custom error.
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,