pub struct TransferOptions {
pub max_parallel: usize,
pub max_attempts: usize,
pub retry_delay: Duration,
}Expand description
Per-invocation scheduling limits; each source has at most one active worker.
Fields§
§max_parallel: usizeMaximum simultaneous workers, 1..=8, also limited by admitted sources.
max_attempts: usizeMaximum attempts for each block across all peers, 1..=32.
retry_delay: DurationBase retry wait, at most one second; deterministic jitter adds up to this amount.
Trait Implementations§
Source§impl Clone for TransferOptions
impl Clone for TransferOptions
impl Copy for TransferOptions
Source§impl Debug for TransferOptions
impl Debug for TransferOptions
Auto Trait Implementations§
impl Freeze for TransferOptions
impl RefUnwindSafe for TransferOptions
impl Send for TransferOptions
impl Sync for TransferOptions
impl Unpin for TransferOptions
impl UnsafeUnpin for TransferOptions
impl UnwindSafe for TransferOptions
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