pub fn register(&self, fd: RawFd, token: Token, interests: Ready, opts: PollOpt) -> io::Result<()> {
        let mut info = libc::epoll_event {
            events: ioevent_to_epoll(interests, opts),
            u64: usize::from(token) as u64
        };

        unsafe {
            cvt(libc::epoll_ctl(self.epfd, libc::EPOLL_CTL_ADD, fd, &mut info))?;
            Ok(())
        }
    }
/// Register event interests for the given IO handle with the OS
Register event interests for the given IO handle with the OS
Register event interests for the given IO handle with the OS
pub fn register(&self, fd: RawFd, token: Token, interests: Ready, opts: PollOpt) -> io::Result<()> {
        let mut info = libc::epoll_event {
            events: ioevent_to_epoll(interests, opts),
            u64: usize::from(token) as u64
        };
        unsafe {
            cvt(libc::epoll_ctl(self.epfd, libc::EPOLL_CTL_ADD, fd, &mut info))?;
            Ok(())
        }
    }
pub fn register ( & self , fd : RawFd , token : Token , interests : Ready , opts : PollOpt ) -> io :: Result < ( ) > { let mut info = libc :: epoll_event { events : ioevent_to_epoll ( interests , opts ) , u64 : usize :: from ( token ) as u64 } ; unsafe { cvt ( libc :: epoll_ctl ( self . epfd , libc :: EPOLL_CTL_ADD , fd , & mut info ) ) ? ; Ok ( ( ) ) } }
Register event interests for the given IO handle with the OS
Register event interests for the given IO handle with the OS
&self
fd
RawFd
token
Token
interests
Ready
opts
PollOpt
&self
fd
RawFd
token
Token
interests
Ready
opts
PollOpt