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]

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.