pub enum MaxRatioAction {
Pause,
Remove,
EnableSuperSeeding,
}Expand description
M171: Action taken when a torrent’s seed ratio reaches its configured limit.
Wire format is qBt’s snake_case string ("pause" / "remove" /
"enable_super_seeding"). Pause keeps the torrent in the session in a
user-stopped state, Remove deletes the torrent record (files remain),
and EnableSuperSeeding flips the torrent into BEP 16 super-seed mode
without stopping.
Variants§
Pause
Pause the torrent — keep it in the session but stop all activity.
Remove
Remove the torrent record. Files on disk are left untouched.
EnableSuperSeeding
Enable BEP 16 super seeding on the torrent rather than stopping it.
Trait Implementations§
Source§impl Clone for MaxRatioAction
impl Clone for MaxRatioAction
Source§fn clone(&self) -> MaxRatioAction
fn clone(&self) -> MaxRatioAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaxRatioAction
impl Debug for MaxRatioAction
Source§impl Default for MaxRatioAction
impl Default for MaxRatioAction
Source§fn default() -> MaxRatioAction
fn default() -> MaxRatioAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaxRatioAction
impl<'de> Deserialize<'de> for MaxRatioAction
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
Source§impl PartialEq for MaxRatioAction
impl PartialEq for MaxRatioAction
Source§fn eq(&self, other: &MaxRatioAction) -> bool
fn eq(&self, other: &MaxRatioAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MaxRatioAction
impl Serialize for MaxRatioAction
impl Copy for MaxRatioAction
impl Eq for MaxRatioAction
impl StructuralPartialEq for MaxRatioAction
Auto Trait Implementations§
impl Freeze for MaxRatioAction
impl RefUnwindSafe for MaxRatioAction
impl Send for MaxRatioAction
impl Sync for MaxRatioAction
impl Unpin for MaxRatioAction
impl UnsafeUnpin for MaxRatioAction
impl UnwindSafe for MaxRatioAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.