Skip to main content

upload_progress_callback

Function upload_progress_callback 

Source
fn upload_progress_callback(
    shared_state: &Arc<Mutex<AppState>>,
    item_id: String,
) -> Arc<dyn Fn(u64, Option<u64>) + Send + Sync> 
Expand description

Helper to generate progress callback callbacks that update global transfer metrics.