pub struct AwsClient { /* private fields */ }
Expand description
An AWS client for S3 multipart uploads.
It has the required methods of UploadClient
, a customized version of the
provided on_complete_upload
can be added for a complete implementation.
Implementations§
Trait Implementations§
Source§impl UploadClient for AwsClient
impl UploadClient for AwsClient
Source§fn new_upload<'a, 'client: 'a>(
&'client self,
addr: &'a UploadAddress,
) -> BoxFuture<'a, Result<UploadRequestParams, AwsError>>
fn new_upload<'a, 'client: 'a>( &'client self, addr: &'a UploadAddress, ) -> BoxFuture<'a, Result<UploadRequestParams, AwsError>>
Create a new upload returning the ID of the upload.
Source§fn upload_part<'a, 'client: 'a>(
&'client self,
params: &'a UploadRequestParams,
part_number: i32,
part: ByteStream,
) -> BoxFuture<'a, Result<EntityTag, AwsError>>
fn upload_part<'a, 'client: 'a>( &'client self, params: &'a UploadRequestParams, part_number: i32, part: ByteStream, ) -> BoxFuture<'a, Result<EntityTag, AwsError>>
Upload one part to the multipart upload.
Source§fn complete_upload<'a, 'client: 'a>(
&'client self,
params: &'a UploadRequestParams,
parts: &'a UploadedParts,
) -> BoxFuture<'a, Result<EntityTag, AwsError>>
fn complete_upload<'a, 'client: 'a>( &'client self, params: &'a UploadRequestParams, parts: &'a UploadedParts, ) -> BoxFuture<'a, Result<EntityTag, AwsError>>
Complete the upload.
Auto Trait Implementations§
impl Freeze for AwsClient
impl !RefUnwindSafe for AwsClient
impl Send for AwsClient
impl Sync for AwsClient
impl Unpin for AwsClient
impl !UnwindSafe for AwsClient
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.
Source§impl<U> UploadClientExt for Uwhere
U: UploadClient,
impl<U> UploadClientExt for Uwhere
U: UploadClient,
Source§fn with_callback<F>(self, callback: F) -> WithCallback<Self, F>where
Self: Sized,
F: OnComplete<Self>,
fn with_callback<F>(self, callback: F) -> WithCallback<Self, F>where
Self: Sized,
F: OnComplete<Self>,
Adds a custom implementation of the default method
on_upload_complete
adding specific handling of the entity tag of the completed upload in
case it is required for some functionality.