pub struct DownloadOptions {
pub retry_gap: Duration,
pub push_queue_cap: usize,
}Expand description
Options for a single-threaded download.
Fields§
§retry_gap: DurationDelay before retrying a failed pull or push.
push_queue_cap: usizeCapacity of the bounded pull→push queue; backpressure when full.
Trait Implementations§
Source§impl Clone for DownloadOptions
impl Clone for DownloadOptions
impl Copy for DownloadOptions
Auto Trait Implementations§
impl Freeze for DownloadOptions
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnsafeUnpin for DownloadOptions
impl UnwindSafe for DownloadOptions
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