(fds: &mut [pollfd], fd: i32)
| 413 | } |
| 414 | |
| 415 | fn get_fd_mut(fds: &mut [pollfd], fd: i32) -> Option<&mut pollfd> { |
| 416 | search(fds, fd).ok().map(move |i| &mut fds[i]) |
| 417 | } |
| 418 | |
| 419 | fn remove_fd(fds: &mut Vec<pollfd>, fd: i32) -> Option<pollfd> { |
| 420 | search(fds, fd).ok().map(|i| fds.remove(i)) |