pub struct ChokingConfig {
pub max_upload_slots: usize,
pub optimistic_unchoke_interval_secs: u64,
pub snubbed_timeout_secs: u64,
pub choke_rotation_interval_secs: u64,
}Expand description
Configuration for the choking algorithm
Fields§
§max_upload_slots: usizeMaximum number of peers to unchoke simultaneously (default: 4)
optimistic_unchoke_interval_secs: u64Interval in seconds between optimistic unchokes (default: 30)
snubbed_timeout_secs: u64Timeout in seconds after which a peer is considered snubbed (default: 60)
choke_rotation_interval_secs: u64Interval in seconds between choke rotations (default: 10)
Trait Implementations§
Source§impl Clone for ChokingConfig
impl Clone for ChokingConfig
Source§fn clone(&self) -> ChokingConfig
fn clone(&self) -> ChokingConfig
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 ChokingConfig
impl Debug for ChokingConfig
Auto Trait Implementations§
impl Freeze for ChokingConfig
impl RefUnwindSafe for ChokingConfig
impl Send for ChokingConfig
impl Sync for ChokingConfig
impl Unpin for ChokingConfig
impl UnsafeUnpin for ChokingConfig
impl UnwindSafe for ChokingConfig
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