SessionMutator

Struct SessionMutator 

Source
pub struct SessionMutator {
Show 44 fields pub alt_speed_down: Option<i32>, pub alt_speed_enabled: Option<bool>, pub alt_speed_time_begin: Option<i32>, pub alt_speed_time_day: Option<i32>, pub alt_speed_time_enabled: Option<bool>, pub alt_speed_time_end: Option<i32>, pub alt_speed_up: Option<i32>, pub blocklist_enabled: Option<bool>, pub blocklist_url: Option<Url>, pub cache_size_mb: Option<i32>, pub dht_enabled: Option<bool>, pub download_dir: Option<PathBuf>, pub download_queue_enabled: Option<bool>, pub download_queue_size: Option<i32>, pub encryption: Option<Encryption>, pub idle_seeding_limit: Option<i32>, pub idle_seeding_limit_enabled: Option<bool>, pub incomplete_dir: Option<PathBuf>, pub incomplete_dir_enabled: Option<bool>, pub lpd_enabled: Option<bool>, pub peer_limit_global: Option<i32>, pub peer_limit_per_torrent: Option<i32>, pub peer_port: Option<i32>, pub peer_port_random_on_start: Option<bool>, pub pex_enabled: Option<bool>, pub port_forwarding_enabled: Option<bool>, pub queue_stalled_enabled: Option<bool>, pub queue_stalled_minutes: Option<i32>, pub rename_partial_files: Option<bool>, pub script_torrent_added_enabled: Option<bool>, pub script_torrent_added_filename: Option<String>, pub script_torrent_done_enabled: Option<bool>, pub script_torrent_done_filename: Option<String>, pub seed_queue_enabled: Option<bool>, pub seed_queue_size: Option<i32>, pub seed_ratio_limit: Option<f32>, pub seed_ratio_limited: Option<bool>, pub speed_limit_down: Option<f32>, pub speed_limit_down_enabled: Option<bool>, pub speed_limit_up: Option<f32>, pub speed_limit_up_enabled: Option<bool>, pub start_added_torrents: Option<bool>, pub trash_original_torrent_files: Option<bool>, pub utp_enabled: Option<bool>,
}

Fields§

§alt_speed_down: Option<i32>§alt_speed_enabled: Option<bool>§alt_speed_time_begin: Option<i32>§alt_speed_time_day: Option<i32>§alt_speed_time_enabled: Option<bool>§alt_speed_time_end: Option<i32>§alt_speed_up: Option<i32>§blocklist_enabled: Option<bool>§blocklist_url: Option<Url>§cache_size_mb: Option<i32>§dht_enabled: Option<bool>§download_dir: Option<PathBuf>§download_queue_enabled: Option<bool>§download_queue_size: Option<i32>§encryption: Option<Encryption>§idle_seeding_limit: Option<i32>§idle_seeding_limit_enabled: Option<bool>§incomplete_dir: Option<PathBuf>§incomplete_dir_enabled: Option<bool>§lpd_enabled: Option<bool>§peer_limit_global: Option<i32>§peer_limit_per_torrent: Option<i32>§peer_port: Option<i32>§peer_port_random_on_start: Option<bool>§pex_enabled: Option<bool>§port_forwarding_enabled: Option<bool>§queue_stalled_enabled: Option<bool>§queue_stalled_minutes: Option<i32>§rename_partial_files: Option<bool>§script_torrent_added_enabled: Option<bool>§script_torrent_added_filename: Option<String>§script_torrent_done_enabled: Option<bool>§script_torrent_done_filename: Option<String>§seed_queue_enabled: Option<bool>§seed_queue_size: Option<i32>§seed_ratio_limit: Option<f32>§seed_ratio_limited: Option<bool>§speed_limit_down: Option<f32>§speed_limit_down_enabled: Option<bool>§speed_limit_up: Option<f32>§speed_limit_up_enabled: Option<bool>§start_added_torrents: Option<bool>§trash_original_torrent_files: Option<bool>§utp_enabled: Option<bool>

Trait Implementations§

Source§

impl Clone for SessionMutator

Source§

fn clone(&self) -> SessionMutator

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SessionMutator

Source§

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

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

impl Default for SessionMutator

Source§

fn default() -> SessionMutator

Returns the “default value” for a type. Read more
Source§

impl Serialize for SessionMutator

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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> 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> ErasedDestructor for T
where T: 'static,