3 ms·
The standard library's abstractions tend to be relatively thin mappers over OS functionality: https://doc.rust-lang.org/stable/std/net/struct.UdpSocket.html#met
by steveklabnik 10y ago
The standard library's abstractions tend to be relatively thin mappers over OS functionality: https://doc.rust-lang.org/stable/std/net/struct.UdpSocket.html#method.set_nonblocking https://doc.rust-lang.org/stable/std/net/struct.UdpSocket.ht...
So, in my understanding, it has this interface because that's the interface that the OS gives you.
Why couldn't you write this interface on top? You'd be writing that function yourself, no?