Skip to content

RFC: I/O Safety#3128

Merged
joshtriplett merged 17 commits intorust-lang:masterfrom
sunfishcode:main
Jul 12, 2021
Merged

RFC: I/O Safety#3128
joshtriplett merged 17 commits intorust-lang:masterfrom
sunfishcode:main

Conversation

@sunfishcode
Copy link
Member

@sunfishcode sunfishcode commented May 25, 2021

Pre-RFC on IRLO

Raw OS handles such as RawFd and RawHandle have hazards similar to raw pointers; they may be bogus or may dangle, leading to broken encapsulation boundaries and code whose behavior is impossible to bound in general.

Introduce a concept of I/O safety, and introduce a new set of types and traits, led by OwnedFd and BorrowedFd, to support it.

[Edited to reflect changes to the RFC].

Rendered

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This RFC is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC. to-announce

Projects

None yet

Development

Successfully merging this pull request may close these issues.