pub fn modify<T: AsRawFd + ?Sized>(&mut self, file: &T, events: EventType, data: u64) -> io::Result<()> {
        let mut event = Event { events: events, data: data };
        
        let rc = unsafe { 
            ffi::epoll_ctl(self.fd, 
                            libc::EPOLL_CTL_MOD, 
                            file.as_raw_fd(), 
                            &mut event) 
        };

        if rc < 0 {
            Err(Error::last_os_error())            
        }
        else {
            Ok(())
        }
    }
/// Modifies the event mask and the associated data of a registered file.
Modifies the event mask and the associated data of a registered file.
Modifies the event mask and the associated data of a registered file .
pub fn modify<T: AsRawFd + ?Sized>(&mut self, file: &T, events: EventType, data: u64) -> io::Result<()> {
        let mut event = Event { events: events, data: data };
        let rc = unsafe { 
            ffi::epoll_ctl(self.fd, 
                            libc::EPOLL_CTL_MOD, 
                            file.as_raw_fd(), 
                            &mut event) 
        };
        if rc < 0 {
            Err(Error::last_os_error())            
        }
        else {
            Ok(())
        }
    }
pub fn modify < T : AsRawFd + ? Sized > ( & mut self , file : & T , events : EventType , data : u64 ) -> io :: Result < ( ) > { let mut event = Event { events : events , data : data } ; let rc = unsafe { ffi :: epoll_ctl ( self . fd , libc :: EPOLL_CTL_MOD , file . as_raw_fd ( ) , & mut event ) } ; if rc < 0 { Err ( Error :: last_os_error ( ) ) } else { Ok ( ( ) ) } }
Modifies the event mask and the associated data of a registered file.
Modifies the event mask and the associated data of a registered file .
&mut self
file
&T
events
EventType
data
u64
&mut self
file
&T
events
EventType
data
u64