pub struct UploadClient { /* private fields */ }Expand description
A client of the multipart upload API.
This can be built from any type that implements SendRequest, such as the
SdkClient.
Implementations§
Source§impl UploadClient
impl UploadClient
Sourcepub fn new<C>(client: C) -> Selfwhere
C: SendRequest + 'static,
pub fn new<C>(client: C) -> Selfwhere
C: SendRequest + 'static,
Create a new UploadClient.
Trait Implementations§
Source§impl Clone for UploadClient
impl Clone for UploadClient
Source§fn clone(&self) -> UploadClient
fn clone(&self) -> UploadClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadClient
impl Debug for UploadClient
Source§impl SendRequest for UploadClient
impl SendRequest for UploadClient
Source§async fn send_create_upload_request(
&self,
req: CreateRequest,
) -> Result<UploadData>
async fn send_create_upload_request( &self, req: CreateRequest, ) -> Result<UploadData>
Send a request to create a new multipart upload, returning an
UploadData having the upload ID assignment.Source§async fn send_new_part_upload_request(
&self,
req: UploadPartRequest,
) -> Result<CompletedPart>
async fn send_new_part_upload_request( &self, req: UploadPartRequest, ) -> 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§async fn send_complete_upload_request(
&self,
req: CompleteRequest,
) -> Result<CompletedUpload>
async fn send_complete_upload_request( &self, req: CompleteRequest, ) -> 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§async fn send_abort_upload_request(&self, req: AbortRequest) -> Result<()>
async fn send_abort_upload_request(&self, req: AbortRequest) -> Result<()>
Send a request to abort a multipart upload returning an empty response if
successful.
Auto Trait Implementations§
impl Freeze for UploadClient
impl !RefUnwindSafe for UploadClient
impl !Send for UploadClient
impl !Sync for UploadClient
impl Unpin for UploadClient
impl !UnwindSafe for UploadClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.