pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(uri: &str) -> Client
pub async fn send_msg( &mut self, input: &RpcRequest, ) -> Result<RpcResponse, Error>
Source§impl Client
impl Client
pub async fn blocklist_update(&mut self) -> Result<BlocklistUpdate, Error>
pub async fn port_test(&mut self) -> Result<PortTest, Error>
pub async fn free_space(&mut self, path: &str) -> Result<FreeSpace, Error>
pub async fn queue_move_top(&mut self, args: Option<Ids>) -> Result<(), Error>
pub async fn queue_move_up(&mut self, args: Option<Ids>) -> Result<(), Error>
pub async fn queue_move_down(&mut self, args: Option<Ids>) -> Result<(), Error>
pub async fn queue_move_bottom( &mut self, args: Option<Ids>, ) -> Result<(), Error>
Source§impl Client
impl Client
pub async fn session_set(&mut self, args: Session) -> Result<(), Error>
pub async fn session_get( &mut self, args: Option<SessionGetArgs>, ) -> Result<Session, Error>
pub async fn session_stats(&mut self) -> Result<SessionStats, Error>
pub async fn session_close(&mut self) -> Result<(), Error>
Source§impl Client
impl Client
pub async fn torrent_start(&mut self, args: Option<Ids>) -> Result<(), Error>
pub async fn torrent_start_now( &mut self, args: Option<Ids>, ) -> Result<(), Error>
pub async fn torrent_stop(&mut self, args: Option<Ids>) -> Result<(), Error>
pub async fn torrent_verify(&mut self, args: Option<Ids>) -> Result<(), Error>
pub async fn torrent_reannounce( &mut self, args: Option<Ids>, ) -> Result<(), Error>
pub async fn torrent_set(&mut self, args: TorrentSetArgs) -> Result<(), Error>
pub async fn torrent_get( &mut self, args: TorrentGetArgs, ) -> Result<TorrentGet, Error>
pub async fn torrent_add( &mut self, args: TorrentAddArgs, ) -> Result<TorrentAdd, Error>
pub async fn torrent_remove( &mut self, args: TorrentRemoveArgs, ) -> Result<(), Error>
pub async fn torrent_set_location( &mut self, args: TorrentSetLocationArgs, ) -> Result<(), Error>
pub async fn torrent_rename_path( &mut self, args: TorrentRenamePathArgs, ) -> Result<TorrentRenamePath, Error>
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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