fn register<E: ?Sized>(&self, io: &E, token: Token)
    where
        E: Evented,
    {
        match self.poll.register(
            io,
            token,
            self.event_set(token),
            self.poll_opt(token),
        ) {
            Ok(_) => {}
            Err(e) => {
                if !self.poll.deregister(io).is_ok() {
                    debug!("error registering {:?}: {}", token, e);
                } else {
                    let _ = self.poll.register(
                        io,
                        token,
                        self.event_set(token),
                        self.poll_opt(token),
                    );
                }
            }
        }
    }
/// register with the poller
/// - reregister on failure
register with the poller
reregister on failure
register with the poller reregister on failure
fn register<E: ?Sized>(&self, io: &E, token: Token)
    where
        E: Evented,
    {
        match self.poll.register(
            io,
            token,
            self.event_set(token),
            self.poll_opt(token),
        ) {
            Ok(_) => {}
            Err(e) => {
                if !self.poll.deregister(io).is_ok() {
                    debug!("error registering {:?}: {}", token, e);
                } else {
                    let _ = self.poll.register(
                        io,
                        token,
                        self.event_set(token),
                        self.poll_opt(token),
                    );
                }
            }
        }
    }
fn register < E : ? Sized > ( & self , io : & E , token : Token ) where E : Evented , { match self . poll . register ( io , token , self . event_set ( token ) , self . poll_opt ( token ) , ) { Ok ( _ ) => { } Err ( e ) => { if ! self . poll . deregister ( io ) . is_ok ( ) { debug ! ( " " token e ) ; } else { let _ = self . poll . register ( io , token , self . event_set ( token ) , self . poll_opt ( token ) , ) ; } } } }
register with the poller
 reregister on failure
register with the poller reregister on failure
&self
io
&E
token
Token
&self
io
&E
token
Token