[][src]Crate bt_bencode

BtBencode is a library which can help with Bencode encoding/decoding. Bencode is primarily used in BitTorrent related applications.

It provides a Serde serializer and deserializer.

Structs

Deserializer

A Bencode Deserializer for types which implement Deserialize.

Serializer

A Bencode Serializer for types which implement Serialize.

Enums

Error

Functions

from_reader

Deserializes an instance of T from the bytes of an io::Read type.

from_slice

Deserializes an instance of T from a slice of bytes.

to_vec

Serializes an instance of T into a new Vec as Bencode data

to_writer

Serializes an instance of T into the writer W as Bencode data.

Type Definitions

Result

A convenience Result type for this crate.