pub struct Http { /* private fields */ }Implementations§
Source§impl Http
impl Http
pub fn new(token: &str) -> Self
pub async fn call_method(&self, method: &str, params: Params) -> JsonResult
pub async fn change_global_option(&self, params: Params)
pub async fn add_uri(&self, uri: &str) -> String
pub async fn add_torrent(&self, torrent: String) -> String
pub async fn tell_status(&self, gid: &str) -> Status
pub async fn tell_active(&self) -> Vec<Status>
pub async fn tell_waiting(&self) -> Vec<Status>
pub async fn tell_stopped(&self) -> Vec<Status>
pub async fn pause(&self, gid: &str)
pub async fn unpause(&self, gid: &str)
pub async fn pause_all(&self)
pub async fn unpause_all(&self)
pub async fn remove(&self, gid: &str)
pub async fn get_global_stat(&self) -> Statistics
pub async fn shutdown(&self)
Auto Trait Implementations§
impl Freeze for Http
impl !RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl !UnwindSafe for Http
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