Struct bip_metainfo::MetainfoFile
[−]
[src]
pub struct MetainfoFile { // some fields omitted }
Contains optional and required information for the torrent.
Methods
impl MetainfoFile
[src]
fn from_bytes<B>(bytes: B) -> ParseResult<MetainfoFile> where B: AsRef<[u8]>
Read a MetainfoFile from the given bytes.
fn info_hash(&self) -> InfoHash
InfoHash of the InfoDictionary used to identify swarms of peers exchaning these files.
fn main_tracker(&self) -> Option<&str>
Announce url for the main tracker of the metainfo file.
fn comment(&self) -> Option<&str>
Comment included within the metainfo file.
fn created_by(&self) -> Option<&str>
Person or group that created the metainfo file.
fn encoding(&self) -> Option<&str>
String encoding format of the peices portion of the info dictionary.
fn creation_date(&self) -> Option<i64>
Creation date in UNIX epoch format for the metainfo file.
fn info(&self) -> &InfoDictionary
InfoDictionary for the metainfo file.