SendRequest

Trait SendRequest 

Source
pub trait SendRequest {
    // Required methods
    fn send_create_upload_request(
        &self,
        req: CreateRequest,
    ) -> impl Future<Output = Result<UploadData>>;
    fn send_new_part_upload_request(
        &self,
        req: UploadPartRequest,
    ) -> impl Future<Output = Result<CompletedPart>>;
    fn send_complete_upload_request(
        &self,
        req: CompleteRequest,
    ) -> impl Future<Output = Result<CompletedUpload>>;
    fn send_abort_upload_request(
        &self,
        req: AbortRequest,
    ) -> impl Future<Output = Result<()>>;
}
Expand description

SendRequest represents the atomic operations in a multipart upload.

Required Methods§

Source

fn send_create_upload_request( &self, req: CreateRequest, ) -> impl Future<Output = Result<UploadData>>

Send a request to create a new multipart upload, returning an UploadData having the upload ID assignment.

Source

fn send_new_part_upload_request( &self, req: UploadPartRequest, ) -> impl Future<Output = Result<CompletedPart>>

Send a request to upload a part to a multipart upload, returning the CompletedPart containing entity tag and part number, which are required in the subsequent complete upload request.

Source

fn send_complete_upload_request( &self, req: CompleteRequest, ) -> impl Future<Output = Result<CompletedUpload>>

Send a request to complete a multipart upload, returning a CompletedUpload, which has the unique entity tag of the object as well as the object URI.

Source

fn send_abort_upload_request( &self, req: AbortRequest, ) -> impl Future<Output = Result<()>>

Send a request to abort a multipart upload returning an empty response if successful.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SendRequest for UploadClient

Source§

impl<B: RequestBuilder> SendRequest for SdkClient<B>

Source§

impl<D, T> SendRequest for T
where D: SendRequest, T: Deref<Target = D>,