pub struct AsyncTempFileClient { /* private fields */ }
Expand description
Another upload client for testing that writes to a temp file.
Implementations§
Trait Implementations§
Source§impl Debug for AsyncTempFileClient
impl Debug for AsyncTempFileClient
Source§impl Default for AsyncTempFileClient
impl Default for AsyncTempFileClient
Source§impl UploadClient for AsyncTempFileClient
impl UploadClient for AsyncTempFileClient
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 AsyncTempFileClient
impl !RefUnwindSafe for AsyncTempFileClient
impl Send for AsyncTempFileClient
impl Sync for AsyncTempFileClient
impl Unpin for AsyncTempFileClient
impl !UnwindSafe for AsyncTempFileClient
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.