1 unstable release

0.0.1 Mar 12, 2024

#49 in #receive

0BSD license

30KB
754 lines

ethrecv

The ethrecv crate is designed to receive ethernet packets at a high rate.


lib.rs:

ethrecv can be used to receive ethernet packets, with the goal of being able to do so at a high rate. It runs a receiver loop in a dedicated thread and passes packets to a application callback implemented using the trait PacketHandler.

It optionally supports an inspect callback, which passes some receiver statistics to a callback. It also supports an optional idle callback which will be called whenever the receiver has been idle for a configurable amount of time (basically a debouncer for detecting an idle period).

Features

Feature Function
idle Enable support for [PacketHandler::idle()].
inspect Enable support for [PacketHandler::inspect()].

Dependencies

~1–11MB
~108K SLoC