about summary refs log tree commit diff
path: root/library/std/src/net/udp
AgeCommit message (Collapse)AuthorLines
2021-08-19I/O safety.Dan Gohman-2/+1
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>
2020-10-13Use is_ok() instead of empty Ok(_)wcampbell-10/+4
Signed-off-by: wcampbell <wcampbell1995@gmail.com>
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+372
Also doing fmt inplace as requested.