Struct bip_metainfo::InfoBuilder [] [src]

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

Builder for generating an info dictionary file from some accessor.

Methods

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

[src]

[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.