Crate ylong_io

Crate ylong_io 

Source
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::Poll needs to implement. crate::Poll will asynchronously poll out connections, and handle it.