| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-08-19 | Rename OptionFileHandle to HandleOrInvalid and make it just wrap an ↵ | Dan Gohman | -79/+37 | |
| Option<OwnedHandle> The name (and updated documentation) make the FFI-only usage clearer, and wrapping Option<OwnedHandle> avoids the need to write a separate Drop or Debug impl. Co-authored-by: Josh Triplett <josh@joshtriplett.org> | ||||
| 2021-08-19 | Don't encourage migration until io_safety is stablized. | Dan Gohman | -4/+4 | |
| 2021-08-19 | Add more comments about the `INVALID_HANDLE_VALUE` situation. | Dan Gohman | -12/+30 | |
| 2021-08-19 | Add Safety comments to the `As*` for `Owned*` implementations. | Dan Gohman | -0/+6 | |
| 2021-08-19 | Rename `OwnedFd`'s private field to match it's debug output. | Dan Gohman | -51/+52 | |
| 2021-08-19 | Delete a spurious empty comment line. | Dan Gohman | -1/+0 | |
| 2021-08-19 | Add a comment about how `OwnedHandle` should not be used with registry handles. | Dan Gohman | -2/+15 | |
| 2021-08-19 | Add a comment about `OptionFileHandle`. | Dan Gohman | -0/+4 | |
| 2021-08-19 | Update library/std/src/os/windows/io/socket.rs | Dan Gohman | -1/+1 | |
| Co-authored-by: Josh Triplett <josh@joshtriplett.org> | ||||
| 2021-08-19 | Update library/std/src/os/windows/io/handle.rs | Dan Gohman | -1/+1 | |
| Co-authored-by: Josh Triplett <josh@joshtriplett.org> | ||||
| 2021-08-19 | I/O safety. | Dan Gohman | -0/+895 | |
| Introduce `OwnedFd` and `BorrowedFd`, and the `AsFd` trait, and implementations of `AsFd`, `From<OwnedFd>` and `From<T> for OwnedFd` for relevant types, along with Windows counterparts for handles and sockets. Tracking issue: - <https://github.com/rust-lang/rust/issues/87074> RFC: - <https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md> | ||||
