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 Debug for Session

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Session

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Session

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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>,

§

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>,

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,