Struct iroh_blobs::downloader::RetryConfig
source · pub struct RetryConfig {
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}
Available on crate feature
downloader
only.Expand description
Configuration for retry behavior of the Downloader
.
Fields§
§max_retries_per_node: u32
Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
initial_retry_delay: Duration
The initial delay to wait before retrying a node. On subsequent failures, the retry delay will be multiplied with the number of failed retries.
Trait Implementations§
source§impl Debug for RetryConfig
impl Debug for RetryConfig
Auto Trait Implementations§
impl Freeze for RetryConfig
impl RefUnwindSafe for RetryConfig
impl Send for RetryConfig
impl Sync for RetryConfig
impl Unpin for RetryConfig
impl UnwindSafe for RetryConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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