Module lava_torrent::torrent::v1
source · [−]Expand description
Module for .torrent
files (v1)
related parsing/encoding/creation.
Structs
A file contained in a torrent.
Everything found in a .torrent file.
Builder for creating Torrent
s from files.
Type Definitions
Corresponds to the announce-list
in BEP 12.
Corresponds to a bencode dictionary.
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.
A piece in pieces
–the SHA1 hash of a torrent block.