Expand description
Single-threaded epoll-driven event loop for the yip data plane.
run_poll drives both the UDP socket and TUN fd from a single OS thread,
eliminating the need for Arc<Mutex<...>> across two threads. The caller
provides a Dispatch implementor that owns all mutable data-plane state.
This module contains all Linux epoll/fcntl unsafe code for yipd. Every
unsafe block carries a // SAFETY: comment explaining the invariants.
Structs§
- Egress
Datagram - One egress datagram: its destination, plus the FEC “fate group” it belongs to.
Enums§
- Dispatch
Out - What
run_pollmust do after a call toDispatch::on_udp.
Traits§
- Dispatch
- A single-threaded data-plane dispatch interface.
Functions§
- run_
poll - Run the epoll event loop until an I/O error is returned.