Crate owned_fd [] [src]

Provide a general handler for file descriptor reasources via the OwnedFd and FdRef types

Structs

FdRef

A zero-cost (well, very, very, low cost) borrow of an OwnedFd.

OwnedFd

OwnedFd is an RAII wrapper around RawFd: it automatically closes on drop & provides borrow() functionality to support lifetimes & borrow checking around the use of file descriptors