pub struct WithCallback<U, F> { /* private fields */ }
Expand description
A wrapper of an upload client that implements the one provided method.
Implementations§
Source§impl<U, F> WithCallback<U, F>
impl<U, F> WithCallback<U, F>
Trait Implementations§
Source§impl<U, F> UploadClient for WithCallback<U, F>
impl<U, F> UploadClient for WithCallback<U, F>
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<U, F> Freeze for WithCallback<U, F>
impl<U, F> RefUnwindSafe for WithCallback<U, F>where
U: RefUnwindSafe,
F: RefUnwindSafe,
impl<U, F> Send for WithCallback<U, F>
impl<U, F> Sync for WithCallback<U, F>
impl<U, F> Unpin for WithCallback<U, F>
impl<U, F> UnwindSafe for WithCallback<U, F>where
U: UnwindSafe,
F: UnwindSafe,
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> 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.