docs.rs failed to build wepoll-binding-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
wepoll-binding-3.0.0
wepoll-binding
Safe Rust bindings for wepoll, using wepoll-sys.
Requirements
- Rust 2018
- Windows
- clang
- A compiler such as gcc, the MSVC compiler (
cl.exe
), etc
Usage
Add wepoll-binding as a Windows dependency (since it won't build on other platforms):
[]
= "1.0.0"
Next you'll need to create an Epoll
instance, and register some sockets with
it:
use ;
use UdpSocket;
let epoll = new.unwrap;
let socket = new.unwrap;
epoll.register.unwrap;
You can poll for events using Epoll::poll()
. For this you'll need to create an
Events
buffer:
use ;
use UdpSocket;
let epoll = new.unwrap;
let socket = new.unwrap;
let mut events = with_capacity;
epoll.register.unwrap;
epoll.poll;
Note that wepoll (and thus this binding) only support sockets, so you can't use arbitrary file descriptors.
License
All source code in this repository is licensed under the Mozilla Public License version 2.0, unless stated otherwise. A copy of this license can be found in the file "LICENSE".