pub struct TransferConfig {
pub concurrency: usize,
pub max_attempts: u32,
pub initial_backoff: Duration,
pub backoff_max: Duration,
}Expand description
Tunables for the transfer queue.
Defaults aim at “sensible for a developer laptop on a corporate VPN” —
not too aggressive on concurrency, generous retries for flaky links.
Upstream Git LFS scales concurrency to CPU count (commit aa08c37f);
we hard-code 8 for v0 and let callers override.
Fields§
§concurrency: usizeMax number of concurrent in-flight transfers.
max_attempts: u32Total attempts per object — including the first. So 3 means “try once, then up to 2 retries”.
initial_backoff: DurationSleep before the first retry. Doubled before each subsequent retry,
capped at backoff_max.
backoff_max: DurationUpper bound for exponential backoff between retries.
Trait Implementations§
Source§impl Clone for TransferConfig
impl Clone for TransferConfig
Source§fn clone(&self) -> TransferConfig
fn clone(&self) -> TransferConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TransferConfig
impl Debug for TransferConfig
Auto Trait Implementations§
impl Freeze for TransferConfig
impl RefUnwindSafe for TransferConfig
impl Send for TransferConfig
impl Sync for TransferConfig
impl Unpin for TransferConfig
impl UnsafeUnpin for TransferConfig
impl UnwindSafe for TransferConfig
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