pub fn is_pollable(&mut self, pollable: Pollable) -> bool {
        self.epoll
            .ctl(
                epoll::ControlOperation::Add,
                pollable,
                &epoll::EpollEvent::default(),
            )
            .map_or(false, |_| {
                self.epoll
                    .ctl(
                        epoll::ControlOperation::Delete,
                        pollable,
                        &epoll::EpollEvent::default(),
                    )
                    .unwrap();
                true
            })
    }
/// Check if a file descriptor is pollable
Check if a file descriptor is pollable
Check if a file descriptor is pollable
pub fn is_pollable(&mut self, pollable: Pollable) -> bool {
        self.epoll
            .ctl(
                epoll::ControlOperation::Add,
                pollable,
                &epoll::EpollEvent::default(),
            )
            .map_or(false, |_| {
                self.epoll
                    .ctl(
                        epoll::ControlOperation::Delete,
                        pollable,
                        &epoll::EpollEvent::default(),
                    )
                    .unwrap();
                true
            })
    }
pub fn is_pollable ( & mut self , pollable : Pollable ) -> bool { self . epoll . ctl ( epoll :: ControlOperation :: Add , pollable , & epoll :: EpollEvent :: default ( ) , ) . map_or ( false , | _ | { self . epoll . ctl ( epoll :: ControlOperation :: Delete , pollable , & epoll :: EpollEvent :: default ( ) , ) . unwrap ( ) ; true } ) }
Check if a file descriptor is pollable
Check if a file descriptor is pollable
&mut self
pollable
Pollable