Skip to main content

MultipartUploadJournal

Trait MultipartUploadJournal 

Source
pub trait MultipartUploadJournal: Send + Sync {
    // Required methods
    fn began(&self, upload_id: &UploadId, part_size_bytes: u64);
    fn part_completed(&self, part: &CompletedUploadPart);
}
Expand description

Where a caller records a direct multipart upload as it happens, so a later run can resume it.

Both methods are called on the thread driving the upload, between network round trips, so an implementation that writes to disk is doing it at the right moment: after the part it describes is durable, and before the next one starts.

Required Methods§

Source

fn began(&self, upload_id: &UploadId, part_size_bytes: u64)

A session was opened, with the part geometry the server chose.

Source

fn part_completed(&self, part: &CompletedUploadPart)

One part landed in object storage.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§