fixed comments
This commit is contained in:
@@ -2,18 +2,18 @@ use std::error::Error;
|
||||
use std::result::Result;
|
||||
use std::time::Instant;
|
||||
|
||||
//! # Network Hardware Module
|
||||
//!
|
||||
//! This module provides network information collection for WatcherAgent, including interface enumeration and bandwidth statistics.
|
||||
//!
|
||||
//! ## Responsibilities
|
||||
//! - **Interface Detection:** Lists all network interfaces.
|
||||
//! - **Bandwidth Monitoring:** Tracks receive/transmit rates using a rolling monitor.
|
||||
//! - **Error Handling:** Graceful fallback if metrics are unavailable.
|
||||
//!
|
||||
//! ## Units
|
||||
//! - `rx_rate`, `tx_rate`: Network bandwidth in **bytes per second (B/s)**
|
||||
//!
|
||||
/// # Network Hardware Module
|
||||
///
|
||||
/// This module provides network information collection for WatcherAgent, including interface enumeration and bandwidth statistics.
|
||||
///
|
||||
/// ## Responsibilities
|
||||
/// - **Interface Detection:** Lists all network interfaces.
|
||||
/// - **Bandwidth Monitoring:** Tracks receive/transmit rates using a rolling monitor.
|
||||
/// - **Error Handling:** Graceful fallback if metrics are unavailable.
|
||||
///
|
||||
/// ## Units
|
||||
/// - `rx_rate`, `tx_rate`: Network bandwidth in **bytes per second (B/s)**
|
||||
///
|
||||
/// Network statistics for the host system.
|
||||
///
|
||||
/// # Fields
|
||||
|
Reference in New Issue
Block a user