/// Creates a new `PollFd` specifying the events of interest
/// for a given file descriptor.
Creates a new `PollFd` specifying the events of interest
for a given file descriptor.
Creates a new ` PollFd ` specifying the events of interest for a given file descriptor .
pub fn new(fd: RawFd, events: EventFlags) -> PollFd {
        PollFd {
            pollfd: libc::pollfd {
                fd: fd,
                events: events.bits(),
                revents: EventFlags::empty().bits(),
            },
        }
    }
pub fn new ( fd : RawFd , events : EventFlags ) -> PollFd { PollFd { pollfd : libc :: pollfd { fd : fd , events : events . bits ( ) , revents : EventFlags :: empty ( ) . bits ( ) , } , } }
Creates a new `PollFd` specifying the events of interest
for a given file descriptor.
Creates a new ` PollFd ` specifying the events of interest for a given file descriptor .
fd
RawFd
events
EventFlags