Commit efa0b26
authored
feat(client): add a
this commit introduces a new inherent method to
`hyper::client::conn::TrySendError<T>`.
this error type includes a `TrySendError::into_error()` method today
that will consume the `TrySendError<T>`, returning the inner error. this
commit introduces a new method that allows callers to inspect the error,
e.g. to update metrics, without needing to consume the error.
this is akin to #3884, which added the `TrySendError::message()` method
that returns a reference to the `T`-typed message when applicable.
Signed-off-by: katelyn martin <[email protected]>TrySendError::error() method (#3885)1 parent 03fd6af commit efa0b26
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
320 | 325 | | |
321 | 326 | | |
322 | 327 | | |
| |||
0 commit comments