[−][src]Struct deluge_rpc::Session
Implementations
impl Session
[src]
pub async fn new(endpoint: impl ToSocketAddrs) -> Result<Self>
[src]
pub async fn close(__arg0: Self) -> Result<()>
[src]
pub async fn daemon_info<'_>(&'_ mut self) -> Result<String>
[src]
pub async fn login<'_, '_, '_>(
&'_ mut self,
username: &'_ str,
password: &'_ str
) -> Result<AuthLevel>
[src]
&'_ mut self,
username: &'_ str,
password: &'_ str
) -> Result<AuthLevel>
pub async fn set_event_interest<'_, '_, '_>(
&'_ mut self,
events: &'_ [&'_ str]
) -> Result<bool>
[src]
&'_ mut self,
events: &'_ [&'_ str]
) -> Result<bool>
pub async fn shutdown(__arg0: Self) -> Result<()>
[src]
pub async fn get_method_list<'_>(&'_ mut self) -> Result<Vec<String>>
[src]
pub async fn add_torrent_file<'_, '_, '_, '_>(
&'_ mut self,
filename: &'_ str,
filedump: &'_ str,
options: &'_ TorrentOptions
) -> Result<Option<InfoHash>>
[src]
&'_ mut self,
filename: &'_ str,
filedump: &'_ str,
options: &'_ TorrentOptions
) -> Result<Option<InfoHash>>
pub async fn add_torrent_files<'_, '_, '_, '_, '_>(
&'_ mut self,
torrent_files: &'_ [(&'_ str, &'_ str, &'_ TorrentOptions)]
) -> Result<()>
[src]
&'_ mut self,
torrent_files: &'_ [(&'_ str, &'_ str, &'_ TorrentOptions)]
) -> Result<()>
pub async fn add_torrent_magnet<'_, '_, '_>(
&'_ mut self,
uri: &'_ str,
options: &'_ TorrentOptions
) -> Result<InfoHash>
[src]
&'_ mut self,
uri: &'_ str,
options: &'_ TorrentOptions
) -> Result<InfoHash>
pub async fn add_torrent_url<'_, '_, '_>(
&'_ mut self,
url: &'_ str,
options: &'_ TorrentOptions,
headers: Option<Dict>
) -> Result<Option<InfoHash>>
[src]
&'_ mut self,
url: &'_ str,
options: &'_ TorrentOptions,
headers: Option<Dict>
) -> Result<Option<InfoHash>>
pub async fn connect_peer<'_>(
&'_ mut self,
torrent_id: InfoHash,
peer_addr: SocketAddr
) -> Result<()>
[src]
&'_ mut self,
torrent_id: InfoHash,
peer_addr: SocketAddr
) -> Result<()>
pub async fn create_account<'_, '_, '_>(
&'_ mut self,
username: &'_ str,
password: &'_ str,
auth_level: AuthLevel
) -> Result<()>
[src]
&'_ mut self,
username: &'_ str,
password: &'_ str,
auth_level: AuthLevel
) -> Result<()>
pub async fn create_torrent<'_, '_, '_, '_, '_, '_, '_>(
&'_ mut self,
path: &'_ str,
comment: &'_ str,
target: &'_ str,
webseeds: &'_ [&'_ str],
private: bool,
created_by: &'_ str,
add_to_session: bool
) -> Result<()>
[src]
&'_ mut self,
path: &'_ str,
comment: &'_ str,
target: &'_ str,
webseeds: &'_ [&'_ str],
private: bool,
created_by: &'_ str,
add_to_session: bool
) -> Result<()>
pub async fn disable_plugin<'_, '_>(&'_ mut self, plugin: &'_ str) -> Result<()>
[src]
pub async fn enable_plugin<'_, '_>(&'_ mut self, plugin: &'_ str) -> Result<()>
[src]
pub async fn force_reannounce<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn force_recheck<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn get_auth_levels_mappings<'_>(
&'_ mut self
) -> Result<(HashMap<String, AuthLevel>, HashMap<AuthLevel, String>)>
[src]
&'_ mut self
) -> Result<(HashMap<String, AuthLevel>, HashMap<AuthLevel, String>)>
pub async fn get_config<'_>(&'_ mut self) -> Result<Dict>
[src]
pub async fn get_config_value<'_, '_>(
&'_ mut self,
key: &'_ str
) -> Result<Value>
[src]
&'_ mut self,
key: &'_ str
) -> Result<Value>
pub async fn get_config_values<'_, '_, '_>(
&'_ mut self,
keys: &'_ [&'_ str]
) -> Result<Dict>
[src]
&'_ mut self,
keys: &'_ [&'_ str]
) -> Result<Dict>
pub async fn get_enabled_plugins<'_>(&'_ mut self) -> Result<Vec<String>>
[src]
pub async fn get_external_ip<'_>(&'_ mut self) -> Result<IpAddr>
[src]
pub async fn get_filter_tree<'_, '_, '_>(
&'_ mut self,
show_zero_hits: bool,
hide_cat: &'_ [&'_ str]
) -> Result<HashMap<String, Vec<(String, u64)>>>
[src]
&'_ mut self,
show_zero_hits: bool,
hide_cat: &'_ [&'_ str]
) -> Result<HashMap<String, Vec<(String, u64)>>>
pub async fn get_free_space<'_, '_>(
&'_ mut self,
path: Option<&'_ str>
) -> Result<u64>
[src]
&'_ mut self,
path: Option<&'_ str>
) -> Result<u64>
pub async fn get_known_accounts<'_>(&'_ mut self) -> Result<Vec<Dict>>
[src]
pub async fn get_libtorrent_version<'_>(&'_ mut self) -> Result<String>
[src]
pub async fn get_listen_port<'_>(&'_ mut self) -> Result<u16>
[src]
pub async fn get_path_size<'_, '_>(&'_ mut self, path: &'_ str) -> Result<i64>
[src]
pub async fn get_proxy<'_>(&'_ mut self) -> Result<Dict>
[src]
pub async fn get_session_state<'_>(&'_ mut self) -> Result<Vec<InfoHash>>
[src]
pub async fn get_session_status<'_, '_, '_>(
&'_ mut self,
keys: &'_ [&'_ str]
) -> Result<HashMap<String, Value>>
[src]
&'_ mut self,
keys: &'_ [&'_ str]
) -> Result<HashMap<String, Value>>
pub async fn get_torrent_status<'_, T: Query>(
&'_ mut self,
torrent_id: InfoHash
) -> Result<T>
[src]
&'_ mut self,
torrent_id: InfoHash
) -> Result<T>
pub async fn get_torrent_status_diff<'_, T: Query>(
&'_ mut self,
torrent_id: InfoHash
) -> Result<T::Diff>
[src]
&'_ mut self,
torrent_id: InfoHash
) -> Result<T::Diff>
pub async fn get_torrent_status_dyn<'_, '_, '_>(
&'_ mut self,
torrent_id: InfoHash,
keys: &'_ [&'_ str],
diff: bool
) -> Result<Dict>
[src]
&'_ mut self,
torrent_id: InfoHash,
keys: &'_ [&'_ str],
diff: bool
) -> Result<Dict>
pub async fn get_torrents_status<'_, T: Query>(
&'_ mut self,
filter_dict: Option<Dict>
) -> Result<HashMap<InfoHash, T>>
[src]
&'_ mut self,
filter_dict: Option<Dict>
) -> Result<HashMap<InfoHash, T>>
pub async fn get_torrents_status_diff<'_, T: Query>(
&'_ mut self,
filter_dict: Option<Dict>
) -> Result<HashMap<InfoHash, T::Diff>>
[src]
&'_ mut self,
filter_dict: Option<Dict>
) -> Result<HashMap<InfoHash, T::Diff>>
pub async fn get_torrents_status_dyn<'_, '_, '_>(
&'_ mut self,
filter_dict: Option<Dict>,
keys: &'_ [&'_ str],
diff: bool
) -> Result<HashMap<InfoHash, Dict>>
[src]
&'_ mut self,
filter_dict: Option<Dict>,
keys: &'_ [&'_ str],
diff: bool
) -> Result<HashMap<InfoHash, Dict>>
pub async fn glob<'_, '_>(&'_ mut self, path: &'_ str) -> Result<Vec<String>>
[src]
pub async fn is_libtorrent_session_paused<'_>(&'_ mut self) -> Result<bool>
[src]
pub async fn move_storage<'_, '_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash],
dest: &'_ str
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash],
dest: &'_ str
) -> Result<()>
pub async fn pause_libtorrent_session<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn pause_torrent<'_>(&'_ mut self, torrent_id: InfoHash) -> Result<()>
[src]
pub async fn pause_torrents<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn prefetch_magnet_metadata<'_, '_>(
&'_ mut self,
magnet: &'_ str,
timeout: u64
) -> Result<(Value, Value)>
[src]
&'_ mut self,
magnet: &'_ str,
timeout: u64
) -> Result<(Value, Value)>
pub async fn queue_bottom<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn queue_down<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn queue_top<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn queue_up<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn remove_account<'_, '_>(
&'_ mut self,
username: &'_ str
) -> Result<()>
[src]
&'_ mut self,
username: &'_ str
) -> Result<()>
pub async fn remove_torrent<'_>(
&'_ mut self,
torrent_id: InfoHash,
remove_data: bool
) -> Result<()>
[src]
&'_ mut self,
torrent_id: InfoHash,
remove_data: bool
) -> Result<()>
pub async fn remove_torrents<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash],
remove_data: bool
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash],
remove_data: bool
) -> Result<()>
pub async fn rename_files<'_, '_, '_>(
&'_ mut self,
torrent_id: InfoHash,
filenames: &'_ [(u64, &'_ str)]
) -> Result<()>
[src]
&'_ mut self,
torrent_id: InfoHash,
filenames: &'_ [(u64, &'_ str)]
) -> Result<()>
pub async fn rename_folder<'_, '_, '_>(
&'_ mut self,
torrent_id: InfoHash,
folder: &'_ str,
new_folder: &'_ str
) -> Result<()>
[src]
&'_ mut self,
torrent_id: InfoHash,
folder: &'_ str,
new_folder: &'_ str
) -> Result<()>
pub async fn rescan_plugins<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn resume_libtorrent_session<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn resume_torrent<'_>(
&'_ mut self,
torrent_id: InfoHash
) -> Result<()>
[src]
&'_ mut self,
torrent_id: InfoHash
) -> Result<()>
pub async fn resume_torrents<'_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash]
) -> Result<()>
pub async fn set_config<'_>(&'_ mut self, config: Dict) -> Result<()>
[src]
pub async fn set_torrent_options<'_, '_, '_>(
&'_ mut self,
torrent_ids: &'_ [InfoHash],
options: &'_ TorrentOptions
) -> Result<()>
[src]
&'_ mut self,
torrent_ids: &'_ [InfoHash],
options: &'_ TorrentOptions
) -> Result<()>
pub async fn test_listen_port<'_>(&'_ mut self) -> Result<bool>
[src]
pub async fn update_account<'_, '_, '_>(
&'_ mut self,
username: &'_ str,
password: &'_ str,
auth_level: AuthLevel
) -> Result<()>
[src]
&'_ mut self,
username: &'_ str,
password: &'_ str,
auth_level: AuthLevel
) -> Result<()>
pub async fn upload_plugin<'_, '_, '_>(
&'_ mut self,
filename: &'_ str,
filedump: &'_ [u8]
) -> Result<()>
[src]
&'_ mut self,
filename: &'_ str,
filedump: &'_ [u8]
) -> Result<()>
pub async fn get_version<'_>(&'_ mut self) -> Result<String>
[src]
pub async fn authorized_call<'_, '_>(&'_ mut self, rpc: &'_ str) -> Result<bool>
[src]
pub async fn get_labels<'_>(&'_ mut self) -> Result<Vec<String>>
[src]
pub async fn add_label<'_, '_>(&'_ mut self, label_id: &'_ str) -> Result<()>
[src]
pub async fn remove_label<'_, '_>(&'_ mut self, label_id: &'_ str) -> Result<()>
[src]
pub async fn get_label_options<'_, '_>(
&'_ mut self,
label_id: &'_ str
) -> Result<Dict>
[src]
&'_ mut self,
label_id: &'_ str
) -> Result<Dict>
pub async fn set_label_options<'_, '_>(
&'_ mut self,
label_id: &'_ str,
options: Dict
) -> Result<()>
[src]
&'_ mut self,
label_id: &'_ str,
options: Dict
) -> Result<()>
pub async fn set_torrent_label<'_, '_>(
&'_ mut self,
torrent_id: InfoHash,
label_id: &'_ str
) -> Result<()>
[src]
&'_ mut self,
torrent_id: InfoHash,
label_id: &'_ str
) -> Result<()>
pub async fn get_label_config<'_>(&'_ mut self) -> Result<Dict>
[src]
pub async fn set_label_config<'_>(&'_ mut self, config: Dict) -> Result<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,