pub struct AddTorrentBuilder { /* private fields */ }
Expand description
Builder for AddTorrent
.
Implementations§
Source§impl AddTorrentBuilder
impl AddTorrentBuilder
pub fn urls<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn torrents<VALUE: Into<Vec<u8>>>(&mut self, value: VALUE) -> &mut Self
pub fn savepath<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn category<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn skip_checking<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn paused<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn root_folder<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn rename<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn upload_limit<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn download_limit<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn automatic_management<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
pub fn sequential_download<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn first_last_piece_prio<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<AddTorrent, AddTorrentBuilderError>
pub fn build(&self) -> Result<AddTorrent, AddTorrentBuilderError>
Trait Implementations§
Source§impl Clone for AddTorrentBuilder
impl Clone for AddTorrentBuilder
Source§fn clone(&self) -> AddTorrentBuilder
fn clone(&self) -> AddTorrentBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AddTorrentBuilder
impl RefUnwindSafe for AddTorrentBuilder
impl Send for AddTorrentBuilder
impl Sync for AddTorrentBuilder
impl Unpin for AddTorrentBuilder
impl UnwindSafe for AddTorrentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more