• Home
  • Raw
  • Download

Lines Matching +full:github +full:- +full:token

3 Mio is a fast, low-level I/O library for Rust focusing on non-blocking APIs and
7 [![Crates.io][crates-badge]][crates-url]
8 [![MIT licensed][mit-badge]][mit-url]
9 [![Build Status][actions-badge]][actions-url]
10 [![Build Status][cirrus-badge]][cirrus-url]
12 [crates-badge]: https://img.shields.io/crates/v/mio.svg
13 [crates-url]: https://crates.io/crates/mio
14 [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
15 [mit-url]: LICENSE
16 [actions-badge]: https://github.com/tokio-rs/mio/workflows/CI/badge.svg
17 [actions-url]: https://github.com/tokio-rs/mio/actions?query=workflow%3ACI+branch%3Amaster
18 [cirrus-badge]: https://api.cirrus-ci.com/github/tokio-rs/mio.svg
19 [cirrus-url]: https://cirrus-ci.com/github/tokio-rs/mio
39 `TcpListener` and `TcpStream`. Note that `features = ["os-poll", "net"]` must be
46 use mio::{Events, Interest, Poll, Token};
49 const SERVER: Token = Token(0);
50 const CLIENT: Token = Token(1);
52 fn main() -> Result<(), Box<dyn Error>> {
78 // We can use the token we previously provided to `register` to
80 match event.token() {
113 * Non-blocking TCP, UDP
118 ## Non-goals
121 or higher-level libraries.
124 * Thread pools / multi-threaded event loop
151 [wepoll]: https://github.com/piscisaureus/wepoll
159 [issue #1472]: https://github.com/tokio-rs/mio/issues/1472
160 [issue #1152]: https://github.com/tokio-rs/mio/issues/1152
161 [issue #1444]: https://github.com/tokio-rs/mio/issues/1444
179 Finally, be kind. We support the [Rust Code of Conduct](https://www.rust-lang.org/policies/code-of-