Skip to main content

Crate deluge_rpc_models

Crate deluge_rpc_models 

Source
Expand description

Typed input/output models for the Deluge daemon RPC protocol.

Structs§

AccountInfo
User account info returned by core.get_known_accounts().
AddTorrentOptions
Options dict for core.add_torrent_* methods and core.set_torrent_options.
AutoAddConfig
Configuration for the AutoAdd plugin.
BlocklistConfig
Configuration for the Blocklist plugin.
BlocklistStatus
Current import status of the Blocklist plugin.
CompletionPaths
Input and return shape for core.get_completion_paths().
CreateTorrentRequest
Request for core.create_torrent.
CreateTorrentResult
Result of core.create_torrent().
DaemonConfig
All daemon config preferences returned by core.get_config().
ExecuteCommand
A command registered with the Execute plugin.
ExtractorConfig
Configuration for the Extractor plugin.
FileInfo
File entry, from the files / orig_files sub-dict of TorrentStatus.
FilterDict
Filter dict for core.get_torrents_status.
FilterTreeEntry
A single entry in the filter tree: (value: str, count: int).
HandledEvent
An event that the Notifications plugin can handle.
LabelConfig
Global configuration for the Label plugin.
LabelOptions
Per-label options applied to torrents with that label.
NotificationsConfig
Configuration for the Notifications plugin.
PeerInfo
Connected peer, from the peers sub-dict of TorrentStatus.
PrefetchMagnetResult
Return of core.prefetch_magnet_metadata. Tuple of (torrent_id, metadata) where metadata is bencoded torrent data.
ProxyConfig
Proxy configuration nested inside DaemonConfig.
SchedulerConfig
Configuration for the Scheduler plugin.
SessionStatus
Session status returned by core.get_session_status(keys).
StatsConfig
Configuration for the Stats plugin.
StatsGetStatsResult
Return value of stats.get_stats.
StatsTotals
Cumulative totals returned by stats.get_totals and stats.get_session_totals.
TorrentEntry
A single torrent’s data as returned by core.get_torrents_status. The outer dict key (torrent_id) is captured in info_hash; the inner status dict is flattened into status.
TorrentStatus
Status of a single torrent, returned by core.get_torrent_status / core.get_torrents_status.
TrackerInfo
Tracker entry, from the trackers sub-dict of TorrentStatus.
WatchDirOptions
Options for a single AutoAdd watch directory.
WebUiConfig
Configuration for the WebUi plugin.

Enums§

DelugeEvent
A typed Deluge daemon event.
ExecuteEvent
Torrent events that can trigger an Execute command.
SchedulerState
Current schedule state returned by scheduler.get_state.
TorrentFormat
Torrent metadata format for core.create_torrent.

Type Aliases§

AddTorrentFileResult
Return of core.add_torrent_file / core.add_torrent_file_async / core.add_torrent_url. None on failure, Some(torrent_id) on success.
AddTorrentFilesResult
Return of core.add_torrent_files. Each element is an error message for a torrent that failed to add. Empty list = all succeeded.
FilterTree
Return of core.get_filter_tree: {field: [(value, count), ...]}.
GetMagnetUriResult
Return of core.get_magnet_uri.
GlobResult
Result of core.glob(path). Returns a list of filesystem paths matching the glob pattern.
RemoveTorrentsResult
Return of core.remove_torrents. Each tuple is (torrent_id, error_message) for failed removals. Empty list = all succeeded.
SetTorrentOptions
Options for core.set_torrent_options. Same keys as AddTorrentOptions.
WatchDirId
Numeric identifier for a watch directory.