/// Creates a new EPoll object.
Creates a new EPoll object.
Creates a new EPoll object .
pub fn new() -> io::Result<Self> {
        let fd = unsafe {
            ffi::epoll_create1(0)
        };
        if fd < 0 {
            Err(Error::last_os_error())            
        }
        else {
            Ok(EPoll { fd: fd })
        }
    }
pub fn new ( ) -> io :: Result < Self > { let fd = unsafe { ffi :: epoll_create1 ( 0 ) } ; if fd < 0 { Err ( Error :: last_os_error ( ) ) } else { Ok ( EPoll { fd : fd } ) } }
Creates a new EPoll object.
Creates a new EPoll object .