1 2 3 4 5 6 7 8
use crate::cmd::CMD; pub async fn net_namespace() -> Option<String> { CMD.exec("ip", ["netns", "identify"]) .await .filter(|s| !s.is_empty()) .map(|s| format!("⁅{s}")) }