Skip to main content

netui/
lib.rs

1//! NetUI library exports for integration testing.
2//!
3//! This library re-exports the main modules needed for integration tests
4//! while keeping the binary entry point in main.rs.
5
6// Public modules
7pub mod backend;
8pub mod constants;
9pub mod error;
10pub mod event;
11pub mod host;
12pub mod interface_utils;
13pub mod mac_vendor;
14pub mod stats;
15pub mod types;
16
17// Private modules (not exposed in library API, but needed for compilation)
18pub mod resolver;
19mod trace;
20mod utils;
21
22// Re-export scanner for benchmarking
23pub mod scanner;
24
25// Re-export commonly used types at the crate root
26pub use backend::{BackendConfig, BackendFactory, PacketSink, PacketSource, PacketWithContext};
27pub use error::{AppResult, NetuiError};
28pub use event::{Event, ScannerEvent, SecurityAlert, SecurityAlertType};
29pub use interface_utils::find_interface;
30pub use mac_vendor::lookup_vendor;
31pub use resolver::resolve_hostname;
32pub use stats::{
33    ports::{format_port_stats, PortStats},
34    session::SessionStats,
35    speed::format_size,
36    Direction, IpPair, Speed, StatKey, StatValues, StatsMap, TcpState,
37};
38pub use types::MacAddr;