nix
nix copied to clipboard
Implement conversion from std::net::Shutdown
trafficstars
What does this PR do
std::net::Shutdown and nix's Shutdown are basically the same.
It is possible in theory to completely the nix version in favour of std's, but it lacks the Hash implementation,
so I opted to just add a conversion.
Checklist:
- [x] I have read
CONTRIBUTING.md - [x] I have written necessary tests and rustdoc comments
- [x] A change log has been added if this PR modifies nix's API