Module net

Module net 

Source
Expand description

Async networking primitives built on top of non-async mio.

This module provides:

  • tcp_stream – async-friendly wrappers around mio::net::TcpStream, exposing AsyncRead/AsyncWrite and configurable timeouts.
  • udp_socket – a UDP wrapper that integrates with the shared event listener and also implements AsyncRead/AsyncWrite.
  • io_event_listener and timeouts – internal pieces used to multiplex I/O readiness and timeout handling.

The implementation is intentionally thin so you can use these building blocks directly or as part of a custom async runtime.

Modules§

io_event_listener
io_event_listener_state
tcp_stream
timeouts
udp_socket

Structs§

TokenTimeout

Functions§

event_listener