An extension trait adding a close method to standard library I/O
related types such as File.
Specifically, these are the types implementing:
-
IntoRawFd(Unix) -
IntoRawHandleorIntoRawSocket(Windows).
close allows dealing with I/O errors which might otherwise be
ignored during drop.