Expand description
A Bencode decoder in Rust.
Structs§
- Bencode
- Struct which owns the bencode tokens. Call
get_root()
to receive a handle for the root object. - Bencode
Any - A bencoded object which could be of any type. You probably want to call
one of
as_list()
,as_dict()
,as_int()
,as_string()
to convert this struct into a concrete type. - Bencode
Dict - A bencoded dictionary
- Bencode
Dict Iter - Iterator over
BencodeDict
keys and value tuples - Bencode
Int - A bencoded integer of arbitrary length.
- Bencode
List - A bencoded list
- Bencode
List Iter - Iterator over
BencodeList
items - Bencode
String - A bencoded string
Enums§
- Bdecode
Error - Error which can occur when calling
bdecode()
. - Node
Type - The type of a node
Functions§
- bdecode
- Decode a bencoded buffer into a
Bencode
struct.