pub type RawFd = isize;
On windows, handle and socket are in the same size. Both of them could be attached to an IOCP. Therefore, both could be seen as fd.