pub struct HashMapClient { /* private fields */ }
Expand description
For testing, a client that writes a part n
with data bytes
as the entry
(n, bytes)
in a hash map.
Implementations§
Trait Implementations§
Source§impl Debug for HashMapClient
impl Debug for HashMapClient
Source§impl Default for HashMapClient
impl Default for HashMapClient
Source§impl UploadClient for HashMapClient
impl UploadClient for HashMapClient
Source§fn upload_part<'a, 'c: 'a>(
&'c self,
params: &'a UploadRequestParams,
part_number: i32,
part: ByteStream,
) -> BoxFuture<'a, Result<EntityTag, AwsError>>
fn upload_part<'a, 'c: 'a>( &'c self, params: &'a UploadRequestParams, part_number: i32, part: ByteStream, ) -> BoxFuture<'a, Result<EntityTag, AwsError>>
Upload one part to the multipart upload.
Source§fn new_upload<'a, 'c: 'a>(
&'c self,
addr: &'a UploadAddress,
) -> BoxFuture<'a, Result<UploadRequestParams, AwsError>>
fn new_upload<'a, 'c: 'a>( &'c self, addr: &'a UploadAddress, ) -> BoxFuture<'a, Result<UploadRequestParams, AwsError>>
Create a new upload returning the ID of the upload.
Source§fn complete_upload<'a, 'c: 'a>(
&'c self,
params: &'a UploadRequestParams,
parts: &'a UploadedParts,
) -> BoxFuture<'a, Result<EntityTag, AwsError>>
fn complete_upload<'a, 'c: 'a>( &'c self, params: &'a UploadRequestParams, parts: &'a UploadedParts, ) -> BoxFuture<'a, Result<EntityTag, AwsError>>
Complete the upload.
Auto Trait Implementations§
impl !Freeze for HashMapClient
impl !RefUnwindSafe for HashMapClient
impl Send for HashMapClient
impl Sync for HashMapClient
impl Unpin for HashMapClient
impl UnwindSafe for HashMapClient
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.