erickt/rust-zmq — pull request #42 by cristicbz (2014-09-02 11:11:24+00:00)
Title: Allow creation of poll items from file descriptor.

Adds a constructor to PollItems to allow polling an arbitrary file descriptor. My use case was wantint to poll both stdin and a zmq socket at the same time:

```rust
let mut items = [socket.as_poll_item(), zmq::PollItem::fd(libc::STDIN_FILENO, zmq::POLLIN)];
match zmq::poll(&mut items) {
Ok(_) => { /*...*/ },
Err(message) => { /*...*/ }
}
```