A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rust-lang/libs-team/issues/92 below:

Add `InProgress` variant to `io::ErrorKind` · Issue #92 · rust-lang/libs-team · GitHub

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)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4