Module lava_torrent::torrent::v1 [] [src]

Module for .torrent files (v1) related parsing/encoding/creation.

Structs

File

A file contained in a torrent.

Torrent

Everything found in a .torrent file.

TorrentBuilder

Builder for creating Torrents from files.

Type Definitions

AnnounceList

Corresponds to the announce-list in BEP 12.

Dictionary

Corresponds to a bencode dictionary.

Integer

Corresponds to a bencode integer. The underlying type is i64. Technically a bencode integer has no size limit, but it is not so in the current implementation. By using a type alias it is easier to change the underlying type in the future.

Piece

A piece in pieces--the SHA1 hash of a torrent block.