docs.rs failed to build netraffic-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Language : 🇺🇸 English | 🇨🇳 简体ä¸æ–‡
Overview
netraffic is a rust library that provides ability to statistics network traffic.
Prerequisites
Windows
Download the WinPcap Developer's Pack. Add the /Lib
or /Lib/x64
folder to your LIB environment variable.
Linux
Install libpcap
On Debian based Linux, apt install libpcap-dev
Mac OS X
libpcap should be installed on Mac OS X by default.
Installation
-
Get the latest version -> https://crates.io/crates/netraffic
-
Add the dependent
[]
= "0.1.0"
- Usage
use ;
use ;
Learn More Examples
Goods
struct -> Traffic · Filter · Snapshot
mod (device
) -> get_device · get_default_device
Documentation
Traffic
Filter
/// Init filter, the default immediate_mode = true
new;
/// or set immediate_mode field
Filter
Snapshot
get_device
/// Get all network interface
get_default_device
/// Get default network interface
Examples
🖥 Get network interface device