notifier

Crates.ionotifier
lib.rsnotifier
version0.1.3
sourcesrc
created_at2018-08-03 14:00:41.637563
updated_at2019-08-30 17:35:25.938214
descriptionA wrapper around platform event notification APIs that can also handle high-resolution timer events, including those set (on another thread) during a `notifier.wait()` call.
homepagehttps://github.com/alecmocatta/notifier
repositoryhttps://github.com/alecmocatta/notifier
max_upload_size
id77340
size44,005
Alec Mocatta (alecmocatta)

documentation

https://docs.rs/notifier/0.1.3

README

notifier

Crates.io MIT / Apache 2.0 licensed Build Status

Docs

A wrapper around platform event notification APIs (currently via mio) that can also handle high-resolution timer events, including those set (on another thread) during a notifier.wait() call.

Delivers edge-triggered notifications for file descriptor state changes (corresponding to mio::Ready::readable() | mio::Ready::writable() | mio::unix::UnixReady::hup() | mio::unix::UnixReady::error()) as well as elapsing of instants.

It's designed to be used in conjunction with a library that exhaustively collects events (e.g. connected, data in, data available to be written, remote closed, bytes acked, connection errors) upon each edge-triggered notification – for example tcp_typed.

Note

Currently doesn't support Windows.

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 31

cargo fmt