[][src]Crate bdecode

A Bencode decoder in Rust.

Structs

Bencode

Struct which owns the bencode tokens. Call get_root() to receive a handle for the root object.

BencodeAny

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.

BencodeDict

A bencoded dictionary

BencodeDictIter

Iterator over BencodeDict keys and value tuples

BencodeInt

A bencoded integer of arbitrary length.

BencodeList

A bencoded list

BencodeListIter

Iterator over BencodeList items

BencodeString

A bencoded string

Enums

BdecodeError

Error which can occur when calling bdecode().

NodeType

The type of a node

Functions

bdecode

Decode a bencoded buffer into a Bencode struct.