pub fn modify(&mut self, pollable: Pollable, epoll_event: EpollEvent) -> Result<()> {
        if self.subscribers.contains_key(&pollable) {
            self.epoll
                .ctl(epoll::ControlOperation::Modify, pollable, &epoll_event)
                .map_err(Error::Poll)?;
        } else {
            return Err(Error::NotFound(pollable));
        }

        Ok(())
    }
/// Update the events monitored by `pollable`.
Update the events monitored by `pollable`.
Update the events monitored by ` pollable ` .
pub fn modify(&mut self, pollable: Pollable, epoll_event: EpollEvent) -> Result<()> {
        if self.subscribers.contains_key(&pollable) {
            self.epoll
                .ctl(epoll::ControlOperation::Modify, pollable, &epoll_event)
                .map_err(Error::Poll)?;
        } else {
            return Err(Error::NotFound(pollable));
        }
        Ok(())
    }
pub fn modify ( & mut self , pollable : Pollable , epoll_event : EpollEvent ) -> Result < ( ) > { if self . subscribers . contains_key ( & pollable ) { self . epoll . ctl ( epoll :: ControlOperation :: Modify , pollable , & epoll_event ) . map_err ( Error :: Poll ) ? ; } else { return Err ( Error :: NotFound ( pollable ) ) ; } Ok ( ( ) ) }
Update the events monitored by `pollable`.
Update the events monitored by ` pollable ` .
&mut self
pollable
Pollable
epoll_event
EpollEvent