Expand description
Event-driven nonblocking net-io components.
Re-exports§
pub use sys::ConnectedUdpSocket;pub use sys::UdpSocket;pub use sys::Event;pub use sys::EventTrait;pub use sys::Events;pub use sys::Selector;pub use sys::SocketAddr;pub use sys::UnixDatagram;pub use sys::UnixListener;pub use sys::UnixStream;pub use sys::TcpListener;pub use sys::TcpStream;
Modules§
- sys
- Implementation of asynchronous IO under different platforms. Linux: epoll Windows: IOCP
Structs§
- Interest
- The interested events, such as readable, writeable.
- Poll
- Registers and deregisters an io’s fd
- Token
- The data inside the epoll_event
- Waker
- Waker allows cross-thread waking of Poll.
Traits§
- Source
- Source Trait that every connection requires async polling in
crate::Pollneeds to implement.crate::Pollwill asynchronously poll out connections, and handle it.