pub fn remove<T: AsRawFd + ?Sized>(&mut self, file: &T) -> io::Result<()> {
        // This syscall doesn't actually use the "event" pointer, but earlier kernel versions
        // required it to be non-null.
        let mut event = Event::default();
        
        let rc = unsafe { 
            ffi::epoll_ctl(self.fd, 
                            libc::EPOLL_CTL_DEL, 
                            file.as_raw_fd(),
                            &mut event) 
        };

        if rc < 0 {
            Err(Error::last_os_error())            
        }
        else {
            Ok(())
        }
    }
/// Removes an existing file-like-object from the epoll.
Removes an existing file-like-object from the epoll.
Removes an existing file - like - object from the epoll .
pub fn remove<T: AsRawFd + ?Sized>(&mut self, file: &T) -> io::Result<()> {
        // This syscall doesn't actually use the "event" pointer, but earlier kernel versions
        // required it to be non-null.
        let mut event = Event::default();
        let rc = unsafe { 
            ffi::epoll_ctl(self.fd, 
                            libc::EPOLL_CTL_DEL, 
                            file.as_raw_fd(),
                            &mut event) 
        };
        if rc < 0 {
            Err(Error::last_os_error())            
        }
        else {
            Ok(())
        }
    }
pub fn remove < T : AsRawFd + ? Sized > ( & mut self , file : & T ) -> io :: Result < ( ) > { // This syscall doesn't actually use the "event" pointer, but earlier kernel versions // required it to be non-null. let mut event = Event :: default ( ) ; let rc = unsafe { ffi :: epoll_ctl ( self . fd , libc :: EPOLL_CTL_DEL , file . as_raw_fd ( ) , & mut event ) } ; if rc < 0 { Err ( Error :: last_os_error ( ) ) } else { Ok ( ( ) ) } }
Removes an existing file-like-object from the epoll.
Removes an existing file - like - object from the epoll .
&mut self
file
&T
&mut self
file
&T