#[repr(C)]
pub struct tr_info {
Show 20 fields pub totalSize: u64, pub originalName: *mut c_char, pub name: *mut c_char, pub torrent: *mut c_char, pub webseeds: *mut *mut c_char, pub comment: *mut c_char, pub creator: *mut c_char, pub files: *mut tr_file, pub pieces: *mut tr_piece, pub trackers: *mut tr_tracker_info, pub dateCreated: time_t, pub trackerCount: c_uint, pub webseedCount: c_uint, pub fileCount: tr_file_index_t, pub pieceSize: u32, pub pieceCount: tr_piece_index_t, pub hash: [u8; 20], pub hashString: [c_char; 41], pub isPrivate: u8, pub isFolder: u8,
}
Expand description

@brief information about a torrent that comes from its metainfo file

Fields

totalSize: u64originalName: *mut c_charname: *mut c_chartorrent: *mut c_charwebseeds: *mut *mut c_charcomment: *mut c_charcreator: *mut c_charfiles: *mut tr_filepieces: *mut tr_piecetrackers: *mut tr_tracker_infodateCreated: time_ttrackerCount: c_uintwebseedCount: c_uintfileCount: tr_file_index_tpieceSize: u32pieceCount: tr_piece_index_thash: [u8; 20]hashString: [c_char; 41]isPrivate: u8isFolder: u8

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.