Name Description Size
event
interest.rs 6120
io_source.rs /// /// # Examples /// /// Basic usage. /// /// ``` /// # use std::error::Error; /// # fn main() -> Result<(), Box<dyn Error>> { /// use mio::{Interest, Poll, Token}; /// use mio::IoSource; /// /// use std::net; /// /// let poll = Poll::new()?; /// /// // Bind a std TCP listener. /// let listener = net::TcpListener::bind("127.0.0.1:0")?; /// // Wrap it in the `IoSource` type. /// let mut listener = IoSource::new(listener); /// /// // Register the listener. /// poll.registry().register(&mut listener, Token(0), Interest::READABLE)?; /// # Ok(()) /// # } /// ``` 9250
lib.rs Mio is a fast, low-level I/O library for Rust focusing on non-blocking APIs and event notification for building high performance I/O apps with as little overhead as possible over the OS abstractions. # Usage Using Mio starts by creating a [`Poll`], which reads events from the OS and puts them into [`Events`]. You can handle I/O events from the OS with it. For more detail, see [`Poll`]. [`Poll`]: ../mio/struct.Poll.html [`Events`]: ../mio/event/struct.Events.html ## Examples Examples can found in the `examples` directory of the source code, or [on GitHub]. [on GitHub]: https://github.com/tokio-rs/mio/tree/master/examples ## Guide A getting started guide is available in the [`guide`] module. ## Available features The available features are described in the [`features`] module. 9514
macros.rs Macros to ease conditional code based on enabled features. 2242
net
poll.rs 28289
sys
token.rs 5054
waker.rs 3056