pub struct UploadConfig {
pub max_retries: usize,
pub retry_delay_ms: u64,
pub auto_resume: bool,
pub progress_callback: Option<fn(usize, usize, &str)>,
}
Expand description
Configuration for upload operations with retry and resume capabilities.
Fields§
§max_retries: usize
Maximum number of retry attempts per chunk
retry_delay_ms: u64
Delay between retry attempts in milliseconds
auto_resume: bool
Whether to enable auto-resume functionality
progress_callback: Option<fn(usize, usize, &str)>
Optional callback for progress reporting
Implementations§
Source§impl UploadConfig
impl UploadConfig
Sourcepub fn with_auto_resume() -> Self
pub fn with_auto_resume() -> Self
Creates a new UploadConfig with auto-resume enabled
Sourcepub fn with_max_retries(self, retries: usize) -> Self
pub fn with_max_retries(self, retries: usize) -> Self
Sets the maximum number of retry attempts
Sourcepub fn with_retry_delay(self, delay_ms: u64) -> Self
pub fn with_retry_delay(self, delay_ms: u64) -> Self
Sets the retry delay in milliseconds
Trait Implementations§
Source§impl Clone for UploadConfig
impl Clone for UploadConfig
Source§fn clone(&self) -> UploadConfig
fn clone(&self) -> UploadConfig
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 UploadConfig
impl Debug for UploadConfig
Auto Trait Implementations§
impl Freeze for UploadConfig
impl RefUnwindSafe for UploadConfig
impl Send for UploadConfig
impl Sync for UploadConfig
impl Unpin for UploadConfig
impl UnwindSafe for UploadConfig
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