dhaar-torrent 0.4.0

A BitTorrent client library: peer wire protocol, piece management and a resumable on-disk store
Documentation
1
2
3
4
5
6
7
use super::tracker_client_messages::{TrackerAnnounceQuery, TrackerResponse};
use crate::error::Result;

#[async_trait::async_trait]
pub trait TrackerClient {
    async fn announce(&self, params: &TrackerAnnounceQuery) -> Result<TrackerResponse>;
}