fn remove_listener(&mut self, fd: RawFd) -> Option<EpollListener> {
        let maybe_listener = self.listener_map.remove(&fd);

        if maybe_listener.is_some() {
            self.epoll
                .ctl(ControlOperation::Delete, fd, &EpollEvent::default())
                .unwrap_or_else(|err| {
                    warn!(
                        "vosck muxer: error removing epoll listener for fd {:?}: {:?}",
                        fd, err
                    );
                });
        }

        maybe_listener
    }
/// Remove (and return) a previously registered epoll listener.
Remove (and return) a previously registered epoll listener.
Remove ( and return ) a previously registered epoll listener .
fn remove_listener(&mut self, fd: RawFd) -> Option<EpollListener> {
        let maybe_listener = self.listener_map.remove(&fd);
        if maybe_listener.is_some() {
            self.epoll
                .ctl(ControlOperation::Delete, fd, &EpollEvent::default())
                .unwrap_or_else(|err| {
                    warn!(
                        "vosck muxer: error removing epoll listener for fd {:?}: {:?}",
                        fd, err
                    );
                });
        }
        maybe_listener
    }
fn remove_listener ( & mut self , fd : RawFd ) -> Option < EpollListener > { let maybe_listener = self . listener_map . remove ( & fd ) ; if maybe_listener . is_some ( ) { self . epoll . ctl ( ControlOperation :: Delete , fd , & EpollEvent :: default ( ) ) . unwrap_or_else ( | err | { warn ! ( " " fd err ) ; } ) ; } maybe_listener }
Remove (and return) a previously registered epoll listener.
Remove ( and return ) a previously registered epoll listener .
&mut self
fd
RawFd