[][src]Struct transmission::torrent::torrentinfo::TorrentFile

pub struct TorrentFile {
    pub length: u64,
    pub name: String,
    pub priority: Priority,
    pub dnd: i8,
    pub is_renamed: bool,
    pub first_piece: u32,
    pub last_piece: u32,
    pub offset: u64,
}

A file that is part of a torrent.

Fields

length: u64

The length of the file in bytes

name: String

Name of the file

priority: Priority

Download priority of the file

dnd: i8is_renamed: bool

Was the file renamed?

first_piece: u32last_piece: u32offset: u64

Trait Implementations

impl From<tr_file> for TorrentFile[src]

impl Debug for TorrentFile[src]

impl Serialize for TorrentFile[src]

impl<'de> Deserialize<'de> for TorrentFile[src]

Auto Trait Implementations

impl Send for TorrentFile

impl Sync for TorrentFile

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]