pub enum JsonRpcServerResponseStatusError {
Unauthorized,
TooManyRequests,
Unexpected {
status: StatusCode,
},
}Expand description
Unexpected status codes returned by the RPC server.
Variants§
The RPC client is unauthorized.
TooManyRequests
The RPC client exceeds the rate limit by sending too many requests.
Unexpected
The RPC server returned a non-200 status code.
Fields
§
status: StatusCodeTrait Implementations§
source§impl Error for JsonRpcServerResponseStatusError
impl Error for JsonRpcServerResponseStatusError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for JsonRpcServerResponseStatusError
impl RefUnwindSafe for JsonRpcServerResponseStatusError
impl Send for JsonRpcServerResponseStatusError
impl Sync for JsonRpcServerResponseStatusError
impl Unpin for JsonRpcServerResponseStatusError
impl UnwindSafe for JsonRpcServerResponseStatusError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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