/// Disables this event source.
///
/// The source remains in the event loop, but it'll no longer generate events
Disables this event source.
The source remains in the event loop, but it'll no longer generate events
Disables this event source . The source remains in the event loop but it ' ll no longer generate events
pub fn disable(&self, token: &RegistrationToken) -> io::Result<()> {
        if let Some(source) = self.inner.sources.borrow().get(token.key) {
            if !source.unregister(&mut *self.inner.poll.borrow_mut())? {
                // we are in a callback, store for later processing
                self.inner.pending_action.set(PostAction::Disable);
            }
        }
        Ok(())
    }
pub fn disable ( & self , token : & RegistrationToken ) -> io :: Result < ( ) > { if let Some ( source ) = self . inner . sources . borrow ( ) . get ( token . key ) { if ! source . unregister ( & mut * self . inner . poll . borrow_mut ( ) ) ? { // we are in a callback, store for later processing self . inner . pending_action . set ( PostAction :: Disable ) ; } } Ok ( ( ) ) }
Disables this event source.
Disables this event source .
&self
token
&RegistrationToken