pub struct Api { /* private fields */ }
Expand description
Main handle and access point to working with qbittorrent.
Full documentation on provided methods is available here
Implementations§
Source§impl Api
impl Api
pub async fn auth( url: &str, username: &str, password: &str, ) -> Result<Self, Error>
pub async fn local(url: &str) -> Result<Self, Error>
pub async fn get_app_version(&self) -> Result<String, Error>
pub async fn get_api_version(&self) -> Result<String, Error>
pub async fn get_build_info(&self) -> Result<BuildInfo, Error>
pub async fn get_default_save_path(&self) -> Result<String, Error>
pub async fn get_main_logs(&self, logs: &LogRequest) -> Result<Vec<Log>, Error>
pub async fn shutdown(&self) -> Result<(), Error>
pub async fn get_global_transfer_info( &self, ) -> Result<GlobalTransferInfo, Error>
pub async fn get_alt_speed_limits_state(&self) -> Result<AlternateLimits, Error>
pub async fn toggle_alt_speed_limits(&self) -> Result<(), Error>
pub async fn get_torrents(&self) -> Result<Vec<Torrent>, Error>
pub async fn add_torrent(&self, torrent: &AddTorrent) -> Result<(), Error>
pub async fn get_categories(&self) -> Result<HashMap<String, Category>, Error>
pub async fn add_category(&self, name: &str, path: &str) -> Result<(), Error>
pub async fn edit_category(&self, name: &str, path: &str) -> Result<(), Error>
pub async fn remove_category(&self, name: &str) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl !RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl !UnwindSafe for Api
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