Skip to main content

Crate mtorrent_utils

Crate mtorrent_utils 

Source
Expand description

Collection of miscellaneous utilities used by the 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.

Modulesยง

bandwidth
Bitrate measurement utilities.
benc
Bencoding parser and serializer.
connect_throttle
Rate-limited connection permits for peer addresses.
fifo_set
FIFO set with optional bounded capacity and deduplication.
local_watch
Single-value watch channel for !Send types.
loop_select
Cooperative poll-loop multiplexing multiple futures.
net
Local IP address discovery and socket helpers.
peer_id
BitTorrent peer ID generation and wrapper.
split_stream
Trait for splitting a bidirectional stream into read/write halves.
upnp
UPnP/IGD port forwarding helpers.
worker
Dedicated single-threaded Tokio worker thread.