#[cfg(any(target_os = "linux", test))]
mod passt;
mod store;
#[cfg(target_os = "macos")]
pub use a3s_box_netproxy::NetProxyManager;
#[cfg(any(target_os = "linux", test))]
pub use passt::{terminate_passt, PasstManager};
pub use store::NetworkStore;
pub trait NetworkBackend: Send + Sync {
fn socket_path(&self) -> &std::path::Path;
fn stop(&mut self);
}
#[cfg(target_os = "macos")]
impl NetworkBackend for NetProxyManager {
fn socket_path(&self) -> &std::path::Path {
self.socket_path()
}
fn stop(&mut self) {
self.stop();
}
}