Struct transmission_client::Session
source · pub struct Session {Show 51 fields
pub alt_speed_down: i32,
pub alt_speed_enabled: bool,
pub alt_speed_time_begin: i32,
pub alt_speed_time_day: i32,
pub alt_speed_time_enabled: bool,
pub alt_speed_time_end: i32,
pub alt_speed_up: i32,
pub blocklist_enabled: bool,
pub blocklist_size: i32,
pub blocklist_url: Option<Url>,
pub cache_size_mb: i32,
pub config_dir: String,
pub dht_enabled: bool,
pub download_dir: PathBuf,
pub download_queue_enabled: bool,
pub download_queue_size: i32,
pub encryption: Encryption,
pub idle_seeding_limit: i32,
pub idle_seeding_limit_enabled: bool,
pub incomplete_dir: PathBuf,
pub incomplete_dir_enabled: bool,
pub lpd_enabled: bool,
pub peer_limit_global: i32,
pub peer_limit_per_torrent: i32,
pub peer_port: i32,
pub peer_port_random_on_start: bool,
pub pex_enabled: bool,
pub port_forwarding_enabled: bool,
pub queue_stalled_enabled: bool,
pub queue_stalled_minutes: i32,
pub rename_partial_files: bool,
pub rpc_version: i32,
pub rpc_version_minimum: i32,
pub rpc_version_semver: String,
pub script_torrent_added_enabled: bool,
pub script_torrent_added_filename: String,
pub script_torrent_done_enabled: bool,
pub script_torrent_done_filename: String,
pub seed_queue_enabled: bool,
pub seed_queue_size: i32,
pub seed_ratio_limit: f32,
pub seed_ratio_limited: bool,
pub session_id: String,
pub speed_limit_down: i32,
pub speed_limit_down_enabled: bool,
pub speed_limit_up: i32,
pub speed_limit_up_enabled: bool,
pub start_added_torrents: bool,
pub trash_original_torrent_files: bool,
pub utp_enabled: bool,
pub version: String,
}
Fields§
§alt_speed_down: i32
§alt_speed_enabled: bool
§alt_speed_time_begin: i32
§alt_speed_time_day: i32
§alt_speed_time_enabled: bool
§alt_speed_time_end: i32
§alt_speed_up: i32
§blocklist_enabled: bool
§blocklist_size: i32
§blocklist_url: Option<Url>
§cache_size_mb: i32
§config_dir: String
§dht_enabled: bool
§download_dir: PathBuf
§download_queue_enabled: bool
§download_queue_size: i32
§encryption: Encryption
§idle_seeding_limit: i32
§idle_seeding_limit_enabled: bool
§incomplete_dir: PathBuf
§incomplete_dir_enabled: bool
§lpd_enabled: bool
§peer_limit_global: i32
§peer_limit_per_torrent: i32
§peer_port: i32
§peer_port_random_on_start: bool
§pex_enabled: bool
§port_forwarding_enabled: bool
§queue_stalled_enabled: bool
§queue_stalled_minutes: i32
§rename_partial_files: bool
§rpc_version: i32
§rpc_version_minimum: i32
§rpc_version_semver: String
§script_torrent_added_enabled: bool
§script_torrent_added_filename: String
§script_torrent_done_enabled: bool
§script_torrent_done_filename: String
§seed_queue_enabled: bool
§seed_queue_size: i32
§seed_ratio_limit: f32
§seed_ratio_limited: bool
§session_id: String
§speed_limit_down: i32
§speed_limit_down_enabled: bool
§speed_limit_up: i32
§speed_limit_up_enabled: bool
§start_added_torrents: bool
§trash_original_torrent_files: bool
§utp_enabled: bool
§version: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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