pub struct MetadataExchangeConfig {
pub max_peers_to_try: usize,
pub connect_timeout: Duration,
pub request_timeout: Duration,
pub piece_size: u32,
pub max_attempts: usize,
}Fields§
§max_peers_to_try: usize§connect_timeout: Duration§request_timeout: Duration§piece_size: u32§max_attempts: usizeImplementations§
Source§impl MetadataExchangeConfig
impl MetadataExchangeConfig
pub fn with_piece_size(self, size: u32) -> Self
pub fn with_max_attempts(self, attempts: usize) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetadataExchangeConfig
impl RefUnwindSafe for MetadataExchangeConfig
impl Send for MetadataExchangeConfig
impl Sync for MetadataExchangeConfig
impl Unpin for MetadataExchangeConfig
impl UnsafeUnpin for MetadataExchangeConfig
impl UnwindSafe for MetadataExchangeConfig
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