pub struct MetadataOptions {
pub timeout_secs: u64,
pub max_queue_size: usize,
pub max_worker_count: usize,
pub peer_failure_cache_capacity: usize,
pub peer_failure_ttl_secs: u64,
}Expand description
Metadata download and failure-cache limits.
Fields§
§timeout_secs: u64End-to-end timeout for one Peer attempt, in seconds.
max_queue_size: usizeMaximum number of deduplicated pending InfoHashes.
max_worker_count: usizeMaximum number of concurrent Metadata jobs.
peer_failure_cache_capacity: usizeMaximum number of cached bad Peer socket addresses.
peer_failure_ttl_secs: u64Timeout/connect failure cache lifetime in seconds.
Trait Implementations§
Source§impl Clone for MetadataOptions
impl Clone for MetadataOptions
Source§fn clone(&self) -> MetadataOptions
fn clone(&self) -> MetadataOptions
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 MetadataOptions
impl Debug for MetadataOptions
Auto Trait Implementations§
impl Freeze for MetadataOptions
impl RefUnwindSafe for MetadataOptions
impl Send for MetadataOptions
impl Sync for MetadataOptions
impl Unpin for MetadataOptions
impl UnsafeUnpin for MetadataOptions
impl UnwindSafe for MetadataOptions
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