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]

[src]

Create a new MetainfoBuilder with some default values set.

[src]

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

[src]

Set or unset the creation date for the torrent.

[src]

Set or unset a comment for the torrent file.

[src]

Set or unset the created by for the torrent file.

[src]

Set or unset the private flag for the torrent file.

[src]

Sets the piece length for the torrent file.

[src]

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

Panics if threads is equal to zero.