feat(platform): introduce abstractions for cross-platform interface statistics and traffic control

Decouple the rate controller from Linux-specific Netlink calls to support other operating systems. This adds a macOS backend for interface statistics and an "observe-only" mode for platforms where traffic shaping is not yet implemented.
This commit is contained in:
Nils Andreas Svee committed 2026-07-17 11:35:43 +07:00
1 parent c5d673fcb8
commit 9811592f13
10 files changed
+570 -102

No files matched your search

+1 -2
View File
@@ -3,8 +3,7 @@
// SPDX-License-Identifier: MPL-2.0
use rustix::fs::Timespec;
use rustix::thread::ClockId;
use rustix::time::clock_gettime;
use rustix::time::{ClockId, clock_gettime};
pub struct Time {
time_s: u64,