ibraheemdev
|
3b6777f1ab
|
add TcpStream::set_linger and TcpStream::linger
|
2021-08-30 13:42:52 -04:00 |
|
Dan Gohman
|
d15418586c
|
I/O safety.
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>
|
2021-08-19 12:02:39 -07:00 |
|
Mara Bos
|
7b71719faf
|
Use io::Error::new_const everywhere to avoid allocations.
|
2021-03-21 20:22:38 +01:00 |
|
Eric Arellano
|
a3174de9ff
|
Fix net.rs - rsplitn() returns a reverse iterator
|
2020-12-07 18:47:10 -07:00 |
|
Eric Arellano
|
d2de69da2e
|
Dogfood 'str_split_once()` in the std lib
|
2020-12-07 14:24:05 -07:00 |
|
Lzu Tao
|
a4e926daee
|
std: move "mod tests/benches" to separate files
Also doing fmt inplace as requested.
|
2020-08-31 02:56:59 +00:00 |
|
Lzu Tao
|
768509ff84
|
Minor changes to Ipv4Addr
* Impl IntoInner rather than AsInner for Ipv4Addr
* Add some comments
* Add test to show endiannes of Ipv4Addr display
|
2020-08-19 03:27:24 +00:00 |
|
mark
|
2c31b45ae8
|
mv std libs to library/
|
2020-07-27 19:51:13 -05:00 |
|