Expand description
HTTP/HTTPS Tracker Client with Event State Machine
This module provides a stateful tracker client that supports both HTTP and HTTPS tracker URLs, with proper event lifecycle management (Started -> Completed -> Stopped).
§Event State Machine
The tracker follows a well-defined event sequence:
- Started: Sent when download begins (first announce)
- Completed: Sent when all pieces are downloaded successfully
- Stopped: Sent when download is cancelled or removed
- None: Regular interval announces (no specific event)
Structs§
- Tracker
State - State machine for tracking announce events and intervals.
Enums§
- Tracker
Event - Tracker announce events as defined in BEP 3 / BEP 15.
Functions§
- build_
tracker_ client - Build a reqwest::Client configured appropriately for the given URL scheme.
- is_
https_ tracker - Detect whether a tracker URL uses HTTPS scheme.