1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! xfr - Modern network bandwidth testing with TUI
//!
//! A fast, beautiful iperf replacement built in Rust.
//!
//! # Library Usage
//!
//! xfr can be used as a library for embedding bandwidth tests in your application:
//!
//! ```ignore
//! use xfr::{Client, ClientConfig};
//! use std::time::Duration;
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let config = ClientConfig {
//! host: "192.168.1.1".to_string(),
//! streams: 4,
//! duration: Duration::from_secs(10),
//! ..Default::default()
//! };
//!
//! let client = Client::new(config);
//! let result = client.run(None).await?;
//!
//! println!("Throughput: {:.2} Mbps", result.throughput_mbps);
//! Ok(())
//! }
//! ```
//!
//! # Modules
//!
//! - [`client`] - Client-side test orchestration
//! - [`serve`] - Server-side connection handling
//! - [`protocol`] - Control protocol messages
//! - [`tcp`], [`udp`], [`quic`] - Transport implementations
//! - [`stats`] - Statistics collection
//! - [`tui`] - Terminal UI rendering
pub use ;
pub use ;
pub use ;