Struct bip_metainfo::Metainfo
[−]
[src]
pub struct Metainfo { /* fields omitted */ }
Contains optional metadata for a torrent file.
Methods
impl Metainfo
[src]
fn from_bytes<B>(bytes: B) -> ParseResult<Metainfo> where
B: AsRef<[u8]>,
B: AsRef<[u8]>,
Read a Metainfo
from metainfo file bytes.
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) -> &Info
Info dictionary for the metainfo file.
fn to_bytes(&self) -> Vec<u8>
Retrieve the bencoded bytes for the Metainfo
file.
Trait Implementations
impl Debug for Metainfo
[src]
impl Clone for Metainfo
[src]
fn clone(&self) -> Metainfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Metainfo
[src]
impl PartialEq for Metainfo
[src]
fn eq(&self, __arg_0: &Metainfo) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Metainfo) -> bool
This method tests for !=
.