pub struct SdkClient<B = DefaultRequestBuilder>(/* private fields */);Expand description
AWS S3 SDK client.
Pairs a Client with a RequestBuilder used to set additional
properties on request objects before sending.
Implementations§
Source§impl SdkClient
impl SdkClient
Sourcepub fn new(client: Client) -> Self
pub fn new(client: Client) -> Self
Create a new SdkClient with default RequestBuilder.
Sourcepub async fn from_config(loader: ConfigLoader) -> Self
pub async fn from_config(loader: ConfigLoader) -> Self
Create a new SdkClient from the supplied ConfigLoader.
Sourcepub async fn defaults() -> Self
pub async fn defaults() -> Self
Create a new SdkClient with default RequestBuilder using the
default ConfigLoader.
Sourcepub fn request_builder<B: RequestBuilder>(self, builder: B) -> SdkClient<B>
pub fn request_builder<B: RequestBuilder>(self, builder: B) -> SdkClient<B>
Set a request builder for this S3 client.
Trait Implementations§
Source§impl<B: RequestBuilder> SendRequest for SdkClient<B>
impl<B: RequestBuilder> SendRequest for SdkClient<B>
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<B> Freeze for SdkClient<B>where
B: Freeze,
impl<B = DefaultRequestBuilder> !RefUnwindSafe for SdkClient<B>
impl<B> Send for SdkClient<B>where
B: Send,
impl<B> Sync for SdkClient<B>where
B: Sync,
impl<B> Unpin for SdkClient<B>where
B: Unpin,
impl<B = DefaultRequestBuilder> !UnwindSafe for SdkClient<B>
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.