-
Notifications
You must be signed in to change notification settings - Fork 24
Add InProgress variant to io::ErrorKind #92
Copy link
Copy link
Closed
Labels
ACP-acceptedAPI Change Proposal is accepted (seconded with no objections)API Change Proposal is accepted (seconded with no objections)T-libs-apiapi-change-proposalA proposal to add or alter unstable APIs in the standard librariesA proposal to add or alter unstable APIs in the standard libraries
Metadata
Metadata
Assignees
Labels
ACP-acceptedAPI Change Proposal is accepted (seconded with no objections)API Change Proposal is accepted (seconded with no objections)T-libs-apiapi-change-proposalA proposal to add or alter unstable APIs in the standard librariesA proposal to add or alter unstable APIs in the standard libraries
Type
Fields
Give feedbackNo fields configured for issues without a type.
Proposal
Add
InProgressvariant toio::ErrorKindto support cases where OS error islibc::EINPROGRESSProblem statement
While working on API that relies on
io::last_os_errorI found out thatkindfield ofio::Erroris set toUncategorizedwhich means I can't "safely" use.kind()to check if it's a specific error, in our caselibc::EINPROGRESSMotivation, 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)