Add InProgress variant to io::ErrorKind (original) (raw)
Proposal
Add InProgress variant to io::ErrorKind to support cases where OS error is libc::EINPROGRESS
Problem statement
While working on API that relies on io::last_os_error I found out that kind field of io::Error is set to Uncategorized which means I can't "safely" use .kind() to check if it's a specific error, in our case libc::EINPROGRESS
Motivation, use-cases
Our code example that can be simplified given the addition.
Solution sketches
Links and related work
Sent a PR of the proposed change
rust-lang/rust#101155 (review)