Expand description
This crate provides everything necessary to download torrents.
Quick usage example
use librqbit::*;
tokio_test::block_on(async {
let session = Session::new("/tmp/where-to-download".into()).await.unwrap();
let managed_torrent_handle = session.add_torrent(
AddTorrent::from_url("magnet:?xt=urn:btih:cab507494d02ebb1178b38f2e9d7be299c86b862"),
None // options
).await.unwrap().into_handle().unwrap();
managed_torrent_handle.wait_until_completed().await.unwrap();
})Overview
The main type to start off with is Session.
It also proved useful to use the Api when building the rqbit desktop app, as it provides
a facade that works with simple serializable types.
Re-exports
Modules
Structs
- Options for adding new torrents to the session.
- A parsed magnet link.
- A parsed .torrent file.
- Main torrent information, shared by .torrent files and magnet link contents.
Enums
Constants
Traits
Functions
- Spawn a future inside a tracing span, while logging it’s start, finish and periodically logging if it’s still alive.
- Parse torrent metainfo from bytes.
- The cargo version of librqbit.