#[repr(C)]
pub struct tr_metainfo_builder {
Show 19 fields 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: u8, pub trackers: *mut tr_tracker_info, pub trackerCount: c_int, pub comment: *mut c_char, pub outputFile: *mut c_char, pub isPrivate: u8, pub pieceIndex: u32, pub abortFlag: u8, pub isDone: u8, 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: u8trackers: *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: u8pieceIndex: 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: u8isDone: u8result: 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

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.