Struct transmission_client::Client
source · pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
pub fn new(address: Url) -> Self
pub fn set_authentication(&self, auth: Option<Authentication>)
pub async fn torrents( &self, ids: Option<Vec<i32>> ) -> Result<Vec<Torrent>, ClientError>
pub async fn torrents_files( &self, ids: Option<Vec<i32>> ) -> Result<Vec<TorrentFiles>, ClientError>
pub async fn torrents_peers( &self, ids: Option<Vec<i32>> ) -> Result<Vec<TorrentPeers>, ClientError>
pub async fn torrents_trackers( &self, ids: Option<Vec<i32>> ) -> Result<Vec<TorrentTrackers>, ClientError>
pub async fn torrent_set( &self, ids: Option<Vec<String>>, mutator: TorrentMutator ) -> Result<(), ClientError>
pub async fn torrent_add_filename( &self, filename: &str ) -> Result<Option<Torrent>, ClientError>
pub async fn torrent_add_metainfo( &self, metainfo: &str ) -> Result<Option<Torrent>, ClientError>
pub async fn torrent_remove( &self, ids: Option<Vec<String>>, delete_local_data: bool ) -> Result<(), ClientError>
pub async fn torrent_start( &self, ids: Option<Vec<String>>, bypass_queue: bool ) -> Result<(), ClientError>
pub async fn torrent_stop( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn torrent_verify( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn torrent_reannounce( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn torrent_set_location( &self, ids: Option<Vec<String>>, location: String, move_data: bool ) -> Result<(), ClientError>
pub async fn queue_move_top( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn queue_move_up( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn queue_move_down( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn queue_move_bottom( &self, ids: Option<Vec<String>> ) -> Result<(), ClientError>
pub async fn session(&self) -> Result<Session, ClientError>
pub async fn session_set( &self, mutator: SessionMutator ) -> Result<(), ClientError>
pub async fn session_stats(&self) -> Result<SessionStats, ClientError>
pub async fn session_close(&self) -> Result<(), ClientError>
pub async fn port_test(&self) -> Result<bool, ClientError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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