pub trait MultipartWriter: Send {
// Required methods
fn write_chunk(&mut self, data: Bytes) -> BoxFuture<'_, Result<()>>;
fn complete(self: Box<Self>) -> BoxFuture<'static, Result<()>>;
}Expand description
Streaming writer used to build up a file in chunks.
Obtained from Storage::write_multipart. Callers push successive
chunks via write_chunk and finalize with
complete; dropping the writer without calling complete
aborts the upload.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".