Struct transmission_sys::tr_metainfo_builder
source · #[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_file
totalSize: u64
fileCount: u32
pieceSize: u32
pieceCount: u32
isFolder: u8
trackers: *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_int
comment: *mut c_char
outputFile: *mut c_char
isPrivate: u8
pieceIndex: 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: u8
isDone: u8
result: tr_metainfo_builder_err
errfile: [c_char; 2048]
my_errno: c_int
nextBuilder: *mut tr_metainfo_builder
This is an implementation detail. The client should never use these fields.
Trait Implementations
sourceimpl Clone for tr_metainfo_builder
impl Clone for tr_metainfo_builder
sourcefn clone(&self) -> tr_metainfo_builder
fn clone(&self) -> tr_metainfo_builder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for tr_metainfo_builder
Auto Trait Implementations
impl RefUnwindSafe for tr_metainfo_builder
impl !Send for tr_metainfo_builder
impl !Sync for tr_metainfo_builder
impl Unpin for tr_metainfo_builder
impl UnwindSafe for tr_metainfo_builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more