Struct Client

Source
pub struct Client { /* private fields */ }

Implementations§

Source§

impl Client

Source

pub fn new(uri: &str) -> Client

Source

pub async fn send_msg( &mut self, input: &RpcRequest, ) -> Result<RpcResponse, Error>

Source§

impl Client

Source

pub async fn blocklist_update(&mut self) -> Result<BlocklistUpdate, Error>

Source

pub async fn port_test(&mut self) -> Result<PortTest, Error>

Source

pub async fn free_space(&mut self, path: &str) -> Result<FreeSpace, Error>

Source

pub async fn queue_move_top(&mut self, args: Option<Ids>) -> Result<(), Error>

Source

pub async fn queue_move_up(&mut self, args: Option<Ids>) -> Result<(), Error>

Source

pub async fn queue_move_down(&mut self, args: Option<Ids>) -> Result<(), Error>

Source

pub async fn queue_move_bottom( &mut self, args: Option<Ids>, ) -> Result<(), Error>

Source§

impl Client

Source

pub async fn session_set(&mut self, args: Session) -> Result<(), Error>

Source

pub async fn session_get( &mut self, args: Option<SessionGetArgs>, ) -> Result<Session, Error>

Source

pub async fn session_stats(&mut self) -> Result<SessionStats, Error>

Source

pub async fn session_close(&mut self) -> Result<(), Error>

Source§

impl Client

Source

pub async fn torrent_start(&mut self, args: Option<Ids>) -> Result<(), Error>

Source

pub async fn torrent_start_now( &mut self, args: Option<Ids>, ) -> Result<(), Error>

Source

pub async fn torrent_stop(&mut self, args: Option<Ids>) -> Result<(), Error>

Source

pub async fn torrent_verify(&mut self, args: Option<Ids>) -> Result<(), Error>

Source

pub async fn torrent_reannounce( &mut self, args: Option<Ids>, ) -> Result<(), Error>

Source

pub async fn torrent_set(&mut self, args: TorrentSetArgs) -> Result<(), Error>

Source

pub async fn torrent_get( &mut self, args: TorrentGetArgs, ) -> Result<TorrentGet, Error>

Source

pub async fn torrent_add( &mut self, args: TorrentAddArgs, ) -> Result<TorrentAdd, Error>

Source

pub async fn torrent_remove( &mut self, args: TorrentRemoveArgs, ) -> Result<(), Error>

Source

pub async fn torrent_set_location( &mut self, args: TorrentSetLocationArgs, ) -> Result<(), Error>

Source

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 UnwindSafe for Client

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,