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
//! Collection of miscellaneous utilities used by the [`mtorrent`](https://crates.io/crates/mtorrent) crate and its components. Some of the utilities are specific to the BitTorrent protocol, while others are generic and can be used in any Tokio-based application.
/// Bitrate measurement utilities.
/// Bencoding parser and serializer.
/// Rate-limited connection permits for peer addresses.
/// FIFO set with optional bounded capacity and deduplication.
/// Local IP address discovery and socket helpers.
/// Single-value watch channel for `!Send` types.
/// Cooperative poll-loop multiplexing multiple futures.
/// BitTorrent peer ID generation and wrapper.
/// Trait for splitting a bidirectional stream into read/write halves.
/// UPnP/IGD port forwarding helpers.
/// Dedicated single-threaded Tokio worker thread.