[][src]Struct qbittorrent::api::Api

pub struct Api { /* fields omitted */ }

Methods

impl Api[src]

pub async fn new<'_, '_, '_>(
    username: &'_ str,
    password: &'_ str,
    address: &'_ str
) -> Result<Self, Error>
[src]

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]

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]

Trait Implementations

impl Debug for Api[src]

impl Pause<Api> for Torrent[src]

impl Pause<Api> for Hash[src]

impl Pause<Api> for Vec<Hash>[src]

impl Resume<Api> for Torrent[src]

impl Resume<Api> for Hash[src]

impl Resume<Api> for Vec<Hash>[src]

impl Tags<Api, [String]> for Torrent[src]

impl Tags<Api, [String]> for Hash[src]

impl Tags<Api, [String]> for Vec<Hash>[src]

impl Tags<Api, [String]> for Vec<Torrent>[src]

impl TorrentData<Api> for Torrent[src]

impl TorrentData<Api> for Hash[src]

impl TorrentData<Torrent> for Api[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.