You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
List the version(s) of hyper, and any relevant hyper dependency (such as h2 if this is related to HTTP/2).
h2: v0.3.14
hyper: v0.14.23
Platform
The output of uname -a (UNIX), or version and 32 or 64-bit (Windows)
Linux laptop2 6.2.5-zen1-1.1-zen #1 ZEN SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
Description
While working on a codebase, I needed to detect whether the following error:
hyper::Error(
Io,
Kind(
TimedOut,
),
)
has Kind set to timeout. The is_timeout function just checks the Cause, but not the Kind. Kind is also a private variable with no way (that I could find) to get a reference to it. Is there another way to do what I'm trying to do?
The text was updated successfully, but these errors were encountered:
Being that hyper says it's an Io error, the Kind is actually from std::io::Error. So, you can grab the source(), downcast to an io::Error, and inspect that.
Version
List the version(s) of
hyper
, and any relevant hyper dependency (such ash2
if this is related to HTTP/2).h2: v0.3.14
hyper: v0.14.23
Platform
The output of
uname -a
(UNIX), or version and 32 or 64-bit (Windows)Linux laptop2 6.2.5-zen1-1.1-zen #1 ZEN SMP PREEMPT_DYNAMIC x86_64 GNU/Linux
Description
While working on a codebase, I needed to detect whether the following error:
has Kind set to timeout. The is_timeout function just checks the Cause, but not the Kind. Kind is also a private variable with no way (that I could find) to get a reference to it. Is there another way to do what I'm trying to do?
The text was updated successfully, but these errors were encountered: