pub trait UploadWriteExt<Part>: MultipartWrite<Part> {
// Provided methods
fn upload(self, client: &UploadClient, iter: ObjectUriIter) -> Upload<Self>
where Self: MultipartWrite<SendUploadPart, Error = UploadError, Output = CompletedParts> + Sized { ... }
fn encoded_upload<E>(
self,
encoder: E,
bytes: ByteSize,
part_bytes: ByteSize,
) -> EncodedUpload<E, Self>
where Self: MultipartWrite<PartBody, Ret = UploadSent, Error = UploadError, Output = CompletedUpload> + Sized { ... }
}Expand description
Extension trait for MultipartWrite adding specializations for S3 uploads.
Provided Methods§
Sourcefn upload(self, client: &UploadClient, iter: ObjectUriIter) -> Upload<Self>
fn upload(self, client: &UploadClient, iter: ObjectUriIter) -> Upload<Self>
Returns a new MultipartWrite that uploads to a multipart upload, using
this writer as a buffer for request futures.
Sourcefn encoded_upload<E>(
self,
encoder: E,
bytes: ByteSize,
part_bytes: ByteSize,
) -> EncodedUpload<E, Self>where
Self: MultipartWrite<PartBody, Ret = UploadSent, Error = UploadError, Output = CompletedUpload> + Sized,
fn encoded_upload<E>(
self,
encoder: E,
bytes: ByteSize,
part_bytes: ByteSize,
) -> EncodedUpload<E, Self>where
Self: MultipartWrite<PartBody, Ret = UploadSent, Error = UploadError, Output = CompletedUpload> + Sized,
Transform this MultipartWrite by composing a PartEncoder in front
of it, resulting in a new one over any type of value that the encoder
is capable of writing.