Struct torrentinfo::Torrent
[−]
[src]
pub struct Torrent { /* fields omitted */ }
Methods
impl Torrent
[src]
pub fn from_buf(buf: &[u8]) -> Result<Self>
[src]
pub fn files(&self) -> &Option<Vec<File>>
[src]
pub fn num_files(&self) -> usize
[src]
pub fn total_size(&self) -> i64
[src]
pub fn info_hash(&self) -> Result<Vec<u8>>
[src]
pub fn info(&self) -> &Info
[src]
pub fn comment(&self) -> &Option<String>
[src]
pub fn announce(&self) -> &Option<String>
[src]
pub fn announce_list(&self) -> &Option<Vec<String>>
[src]
pub fn created_by(&self) -> &Option<String>
[src]
pub fn creation_date(&self) -> &Option<i64>
[src]
pub fn encoding(&self) -> &Option<String>
[src]
Trait Implementations
impl Debug for Torrent
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more