/// Registers a file onto the event loop.
Registers a file onto the event loop.
Registers a file onto the event loop .
pub fn add(&mut self, file: &'a T) -> io::Result<()> {
        self.epoll.add(file, EPOLLIN, file.as_raw_fd() as u64)?;
        self.files.push(file);
        if self.events.len() < self.files.len() {
            self.events.push(Default::default());
        }
        Ok(())
    }
pub fn add ( & mut self , file : & ' a T ) -> io :: Result < ( ) > { self . epoll . add ( file , EPOLLIN , file . as_raw_fd ( ) as u64 ) ? ; self . files . push ( file ) ; if self . events . len ( ) < self . files . len ( ) { self . events . push ( Default :: default ( ) ) ; } Ok ( ( ) ) }
Registers a file onto the event loop.
Registers a file onto the event loop .
&mut self
file
&'a T