pub fn deregister(&self, fd: RawFd) -> io::Result<()> {
        // The &info argument should be ignored by the system,
        // but linux < 2.6.9 required it to be not null.
        // For compatibility, we provide a dummy EpollEvent.
        let mut info = libc::epoll_event {
            events: 0,
            u64: 0,
        };

        unsafe {
            cvt(libc::epoll_ctl(self.epfd, libc::EPOLL_CTL_DEL, fd, &mut info))?;
            Ok(())
        }
    }
/// Deregister event interests for the given IO handle with the OS
Deregister event interests for the given IO handle with the OS
Deregister event interests for the given IO handle with the OS
pub fn deregister(&self, fd: RawFd) -> io::Result<()> {
        // The &info argument should be ignored by the system,
        // but linux < 2.6.9 required it to be not null.
        // For compatibility, we provide a dummy EpollEvent.
        let mut info = libc::epoll_event {
            events: 0,
            u64: 0,
        };
        unsafe {
            cvt(libc::epoll_ctl(self.epfd, libc::EPOLL_CTL_DEL, fd, &mut info))?;
            Ok(())
        }
    }
pub fn deregister ( & self , fd : RawFd ) -> io :: Result < ( ) > { // The &info argument should be ignored by the system, // but linux < 2.6.9 required it to be not null. // For compatibility, we provide a dummy EpollEvent. let mut info = libc :: epoll_event { events : 0 , u64 : 0 , } ; unsafe { cvt ( libc :: epoll_ctl ( self . epfd , libc :: EPOLL_CTL_DEL , fd , & mut info ) ) ? ; Ok ( ( ) ) } }
Deregister event interests for the given IO handle with the OS
Deregister event interests for the given IO handle with the OS
&self
fd
RawFd
&self
fd
RawFd