1 unstable release

0.0.1 Mar 12, 2024

#39 in #receive

Download history 131/week @ 2024-03-12 1/week @ 2024-03-19 4/week @ 2024-03-26 20/week @ 2024-04-02

156 downloads per month

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–13MB
~131K SLoC