Struct bip_metainfo::MetainfoBuilder [] [src]

pub struct MetainfoBuilder<'a> { /* fields omitted */ }

Builder for generating a torrent file from some accessor.

Methods

impl<'a> MetainfoBuilder<'a>
[src]

Create a new MetainfoBuilder with some default values set.

Set or unset the main tracker that this torrent file points to.

Set or unset the creation date for the torrent.

Set or unset a comment for the torrent file.

Set or unset the created by for the torrent file.

Set or unset the private flag for the torrent file.

Sets the piece length for the torrent file.

Build the metainfo file from the given accessor and the number of worker threads.

Panics if threads is equal to zero.