Skip to main content

UploadProgress

Type Alias UploadProgress 

Source
pub type UploadProgress = Arc<dyn Fn(u64) + Sync + Send>;
Expand description

Reports how many bytes of a write have reached the backend so far. Called with the cumulative byte count as the body uploads; backends that can’t observe sub-call progress call it once at the end with the full size. The count is of the bytes handed to write (the encrypted payload).

Owned and shareable, like DownloadProgress and PreparationProgress. A provider that runs its request on Coven’s cloud runtime hands the request body a clone of this handle so the body can report as it streams; a borrowed callback could not outlive the call that started the request.

Aliased Type§

pub struct UploadProgress { /* private fields */ }