UploadWriteExt

Trait UploadWriteExt 

Source
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§

Source

fn upload(self, client: &UploadClient, iter: ObjectUriIter) -> Upload<Self>
where Self: MultipartWrite<SendUploadPart, Error = UploadError, Output = CompletedParts> + Sized,

Returns a new MultipartWrite that uploads to a multipart upload, using this writer as a buffer for request futures.

Source

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.

Implementors§

Source§

impl<Part, Wr: MultipartWrite<Part>> UploadWriteExt<Part> for Wr