[][src]Struct transmission_sys::tr_metainfo_builder

#[repr(C)]
pub struct tr_metainfo_builder { pub top: *mut c_char, pub files: *mut tr_metainfo_builder_file, pub totalSize: u64, pub fileCount: u32, pub pieceSize: u32, pub pieceCount: u32, pub isFolder: bool, pub trackers: *mut tr_tracker_info, pub trackerCount: c_int, pub comment: *mut c_char, pub outputFile: *mut c_char, pub isPrivate: bool, pub pieceIndex: u32, pub abortFlag: bool, pub isDone: bool, pub result: tr_metainfo_builder_err, pub errfile: [c_char; 2048], pub my_errno: c_int, pub nextBuilder: *mut tr_metainfo_builder, }

Fields

top: *mut c_char

These are set by tr_makeMetaInfoBuilderCreate() and cleaned up by tr_metaInfoBuilderFree()

files: *mut tr_metainfo_builder_filetotalSize: u64fileCount: u32pieceSize: u32pieceCount: u32isFolder: booltrackers: *mut tr_tracker_info

These are set inside tr_makeMetaInfo() by copying the arguments passed to it, and cleaned up by tr_metaInfoBuilderFree()

trackerCount: c_intcomment: *mut c_charoutputFile: *mut c_charisPrivate: boolpieceIndex: u32

These are set inside tr_makeMetaInfo() so the client can poll periodically to see what the status is. The client can also set abortFlag to nonzero to tell tr_makeMetaInfo() to abort and clean up after itself.

abortFlag: boolisDone: boolresult: tr_metainfo_builder_errerrfile: [c_char; 2048]my_errno: c_intnextBuilder: *mut tr_metainfo_builder

This is an implementation detail. The client should never use these fields.

Trait Implementations

impl Copy for tr_metainfo_builder[src]

impl Clone for tr_metainfo_builder[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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> 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> Any for T where
    T: 'static + ?Sized
[src]