sandbox_rs/network/
mod.rs

1//! Network layer: Network isolation and configuration
2//!
3//! This module manages network namespace isolation and configuration,
4//! including bridge setup and port mapping.
5//!
6//! # Features
7//!
8//! - **Network modes**: Isolated, bridge, host, or custom
9//! - **Interface configuration**: IP addresses and gateways
10//! - **Port mapping**: Container to host port translation
11//! - **DNS management**: Custom DNS server configuration
12//! - **Bandwidth limiting**: Optional network rate limiting
13//!
14//! # Examples
15//!
16//! ```ignore
17//! use sandbox_rs::network::{NetworkConfig, NetworkMode};
18//!
19//! let config = NetworkConfig::isolated()
20//!     .with_dns_server("8.8.8.8")?;
21//! ```
22
23pub mod config;
24pub use config::{NetworkConfig, NetworkInterface, NetworkMode, NetworkStats, PortMapping};
25
26#[cfg(test)]
27mod tests;