[−][src]Struct qbittorrent::api::Api
Methods
impl Api
[src]
pub async fn new<'_, '_, '_>(
username: &'_ str,
password: &'_ str,
address: &'_ str
) -> Result<Self, Error>
[src]
username: &'_ str,
password: &'_ str,
address: &'_ str
) -> Result<Self, Error>
pub async fn application_version<'_>(&'_ self) -> Result<String, Error>
[src]
pub async fn api_version<'_>(&'_ self) -> Result<String, Error>
[src]
pub async fn build_info<'_>(&'_ self) -> Result<BuildInfo, Error>
[src]
pub async fn shutdown<'_>(&'_ self) -> Result<(), Error>
[src]
pub async fn preferences<'_>(&'_ self) -> Result<Preferences, Error>
[src]
pub fn set_preferences(&self) -> Result<(), Error>
[src]
pub async fn default_save_path<'_>(&'_ self) -> Result<String, Error>
[src]
pub async fn get_log<'_, '_>(
&'_ self,
log_request: &'_ LogRequest
) -> Result<Vec<Log>, Error>
[src]
&'_ self,
log_request: &'_ LogRequest
) -> Result<Vec<Log>, Error>
pub fn get_peer_log(&self) -> Result<Vec<Peer>, Error>
[src]
pub fn get_main_data(&self) -> Result<MainData, Error>
[src]
pub fn get_global_transfer_info(&self) -> Result<(), ()>
[src]
pub fn get_alternate_speed_limits_state(&self) -> Result<(), Error>
[src]
pub async fn toggle_alternative_speed_limits<'_>(&'_ self) -> Result<(), Error>
[src]
pub fn set_alternate_speed_limits_state(&self) -> Result<(), Error>
[src]
pub fn get_global_donwload_limit(&self) -> Result<(), Error>
[src]
pub fn set_global_download_limit(&self) -> Result<(), Error>
[src]
pub fn get_global_upload_limit(&self) -> Result<(), Error>
[src]
pub fn set_global_upload_limit(&self) -> Result<(), Error>
[src]
pub async fn get_torrent_list<'_>(&'_ self) -> Result<Vec<Torrent>, Error>
[src]
pub async fn add_new_torrent<'_, '_>(
&'_ self,
data: &'_ TorrentDownload
) -> Result<(), Error>
[src]
&'_ self,
data: &'_ TorrentDownload
) -> Result<(), Error>
Trait Implementations
impl Debug for Api
[src]
impl Pause<Api> for Torrent
[src]
fn pause<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Pause<Api> for Hash
[src]
fn pause<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Pause<Api> for Vec<Hash>
[src]
fn pause<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Resume<Api> for Torrent
[src]
fn resume<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Resume<Api> for Hash
[src]
fn resume<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Resume<Api> for Vec<Hash>
[src]
fn resume<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Tags<Api, [String]> for Torrent
[src]
fn add_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Tags<Api, [String]> for Hash
[src]
fn add_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Tags<Api, [String]> for Vec<Hash>
[src]
fn add_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Tags<Api, [String]> for Vec<Torrent>
[src]
fn add_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl TorrentData<Api> for Torrent
[src]
fn properties<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn trackers<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn contents<'a, 'async_trait>(
&'a self,
api: &'a Api
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
api: &'a Api
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
impl TorrentData<Api> for Hash
[src]
fn properties<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn trackers<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn contents<'a, 'async_trait>(
&'a self,
api: &'a Api
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
api: &'a Api
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
impl TorrentData<Torrent> for Api
[src]
fn properties<'life0, 'life1, 'async_trait>(
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn trackers<'life0, 'life1, 'async_trait>(
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn contents<'a, 'async_trait>(
&'a self,
torrent: &'a Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
torrent: &'a Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl !UnwindSafe for Api
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,