pub enum ChokingAlgorithm {
FixedSlots,
RateBased,
}Expand description
Top-level choking algorithm variant.
Variants§
FixedSlots
Fixed number of unchoke slots (libtorrent default).
RateBased
Rate-based unchoking (auto-adjusts slots).
Trait Implementations§
Source§impl Clone for ChokingAlgorithm
impl Clone for ChokingAlgorithm
Source§fn clone(&self) -> ChokingAlgorithm
fn clone(&self) -> ChokingAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · 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 ChokingAlgorithm
impl Debug for ChokingAlgorithm
Source§impl Default for ChokingAlgorithm
impl Default for ChokingAlgorithm
Source§fn default() -> ChokingAlgorithm
fn default() -> ChokingAlgorithm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChokingAlgorithm
impl<'de> Deserialize<'de> for ChokingAlgorithm
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 ChokingAlgorithm
impl PartialEq for ChokingAlgorithm
Source§impl Serialize for ChokingAlgorithm
impl Serialize for ChokingAlgorithm
impl Copy for ChokingAlgorithm
impl Eq for ChokingAlgorithm
impl StructuralPartialEq for ChokingAlgorithm
Auto Trait Implementations§
impl Freeze for ChokingAlgorithm
impl RefUnwindSafe for ChokingAlgorithm
impl Send for ChokingAlgorithm
impl Sync for ChokingAlgorithm
impl Unpin for ChokingAlgorithm
impl UnsafeUnpin for ChokingAlgorithm
impl UnwindSafe for ChokingAlgorithm
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