pub fn update(&self, token: &RegistrationToken) -> io::Result<()> {
        if let Some(source) = self.inner.sources.borrow().get(token.key) {
            if !source.reregister(
                &mut *self.inner.poll.borrow_mut(),
                &mut TokenFactory::new(token.key),
            )? {
                // we are in a callback, store for later processing
                self.inner.pending_action.set(PostAction::Reregister);
            }
        }
        Ok(())
    }
/// Makes this source update its registration.
///
/// If after accessing the source you changed its parameters in a way that requires
/// updating its registration.
Makes this source update its registration.
If after accessing the source you changed its parameters in a way that requires
updating its registration.
Makes this source update its registration . If after accessing the source you changed its parameters in a way that requires updating its registration .
pub fn update(&self, token: &RegistrationToken) -> io::Result<()> {
        if let Some(source) = self.inner.sources.borrow().get(token.key) {
            if !source.reregister(
                &mut *self.inner.poll.borrow_mut(),
                &mut TokenFactory::new(token.key),
            )? {
                // we are in a callback, store for later processing
                self.inner.pending_action.set(PostAction::Reregister);
            }
        }
        Ok(())
    }
pub fn update ( & self , token : & RegistrationToken ) -> io :: Result < ( ) > { if let Some ( source ) = self . inner . sources . borrow ( ) . get ( token . key ) { if ! source . reregister ( & mut * self . inner . poll . borrow_mut ( ) , & mut TokenFactory :: new ( token . key ) , ) ? { // we are in a callback, store for later processing self . inner . pending_action . set ( PostAction :: Reregister ) ; } } Ok ( ( ) ) }
Makes this source update its registration.
Makes this source update its registration .
&self
token
&RegistrationToken
&self
token
&RegistrationToken