pub fn unregister(&mut self, pollable: Pollable) -> Result<()> {
        match self.subscribers.remove(&pollable) {
            Some(_) => {
                self.epoll
                    .ctl(
                        epoll::ControlOperation::Delete,
                        pollable,
                        &epoll::EpollEvent::default(),
                    )
                    .map_err(Error::Poll)?;
            }
            None => {
                return Err(Error::NotFound(pollable));
            }
        }
        Ok(())
    }
/// Unregister the `pollable` file descriptor.
Unregister the `pollable` file descriptor.
Unregister the ` pollable ` file descriptor .
pub fn unregister(&mut self, pollable: Pollable) -> Result<()> {
        match self.subscribers.remove(&pollable) {
            Some(_) => {
                self.epoll
                    .ctl(
                        epoll::ControlOperation::Delete,
                        pollable,
                        &epoll::EpollEvent::default(),
                    )
                    .map_err(Error::Poll)?;
            }
            None => {
                return Err(Error::NotFound(pollable));
            }
        }
        Ok(())
    }
pub fn unregister ( & mut self , pollable : Pollable ) -> Result < ( ) > { match self . subscribers . remove ( & pollable ) { Some ( _ ) => { self . epoll . ctl ( epoll :: ControlOperation :: Delete , pollable , & epoll :: EpollEvent :: default ( ) , ) . map_err ( Error :: Poll ) ? ; } None => { return Err ( Error :: NotFound ( pollable ) ) ; } } Ok ( ( ) ) }
Unregister the `pollable` file descriptor.
Unregister the ` pollable ` file descriptor .
&mut self
pollable
Pollable