pub trait AsFd {
fn as_fd(&self) -> BorrowedFd<'_>;
}
This is supported on Unix only.
Expand description
A trait to borrow the file descriptor from an underlying object.
This is only available on unix platforms and must be imported in order to
call the method. Windows platforms have a corresponding AsHandle
and
AsSocket
set of traits.