epoll-rs

Crates.ioepoll-rs
lib.rsepoll-rs
version0.2.2
sourcesrc
created_at2021-08-11 18:43:23.156563
updated_at2023-08-10 12:31:18.129091
descriptionHigh level bindings to linux's epoll interface
homepage
repositoryhttps://github.com/maxbla/epoll-rs
max_upload_size
id434897
size43,695
Max Blachman (maxbla)

documentation

README

Epoll-rs

What is it?

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.

Why

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 RawFds and not Files.

Mio is complicated because it aims to support multiple platforms, which epoll-rs doesn't.

How do I use it?

See the examples directory and top level api documentation

Commit count: 12

cargo fmt