Crates.io | epoll-rs |
lib.rs | epoll-rs |
version | 0.2.2 |
source | src |
created_at | 2021-08-11 18:43:23.156563 |
updated_at | 2023-08-10 12:31:18.129091 |
description | High level bindings to linux's epoll interface |
homepage | |
repository | https://github.com/maxbla/epoll-rs |
max_upload_size | |
id | 434897 |
size | 43,695 |
Epoll-rs is a difficult to misuse, high-level binding to Linux's epoll interface. It provides the Epoll
type, which wraps an epoll file descriptor, just like std::fs::File
wraps normal file descriptors.
epoll is too low level. It is a safe wrapper around epoll, so doesn't require the use of unsafe, but has sharp edges, like needing to use epoll::close
instead of automatically calling close on drop
and making the API consumer deal exclusively with RawFd
s and not File
s.
Mio is complicated because it aims to support multiple platforms, which epoll-rs doesn't.
See the examples directory and top level api documentation