Struct bip_metainfo::File [] [src]

pub struct File {
    // some fields omitted
}

Contains information for a single file.

Methods

impl File
[src]

fn length(&self) -> i64

Length of the file in bytes.

fn md5sum(&self) -> Option<&[u8]>

Optional md5sum of the file.

Not used by bittorrent.

fn paths<'a>(&'a self) -> Paths<'a>

Iterator over the path elements of the file.

The last element is the name of the file.

Trait Implementations

impl Debug for File
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.